summaryrefslogtreecommitdiffstats
path: root/K_belwagen/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'K_belwagen/default.nix')
-rw-r--r--K_belwagen/default.nix25
1 files changed, 25 insertions, 0 deletions
diff --git a/K_belwagen/default.nix b/K_belwagen/default.nix
new file mode 100644
index 00000000..c284ac86
--- /dev/null
+++ b/K_belwagen/default.nix
@@ -0,0 +1,25 @@
+{ pkgs ? import <nixpkgs> {} }:
+
+# TODO check if system has jack2 installed
+
+pkgs.stdenv.mkDerivation {
+ name = "K_belwagen-1";
+
+ src = ./.;
+
+ buildInputs = with pkgs; [
+ coreutils
+ jack2
+ pkgconfig
+ ];
+
+ installPhase = ''
+ mkdir -p $out/bin $out/lib
+ cp alarm $out/bin
+ cp a.out $out/lib
+ sed -i '
+ s:^\(jackd\|trap\|make\|cd\)\>:#&:
+ s:\./a\.out:'$out/lib/a.out':
+ ' $out/bin/alarm
+ '';
+}