diff options
author | tv <tv@shackspace.de> | 2014-12-20 23:50:33 +0100 |
---|---|---|
committer | tv <tv@shackspace.de> | 2014-12-20 23:50:33 +0100 |
commit | 5c7c7d242fa943ec7a96de4a43efa3fc6b1ef77a (patch) | |
tree | b0207325db6b66a9e346956e3793224022be0900 /K_belwagen/default.nix | |
parent | b7ea9e035a729186afb57894891d3bdec43aa9ae (diff) |
nixify Kübelwagen (without UTF-8 :/)
Diffstat (limited to 'K_belwagen/default.nix')
-rw-r--r-- | K_belwagen/default.nix | 25 |
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 + ''; +} |