diff options
author | makefu <github@syntax-fehler.de> | 2022-01-26 17:59:53 +0100 |
---|---|---|
committer | makefu <github@syntax-fehler.de> | 2022-01-26 17:59:53 +0100 |
commit | 54aaf5af8ed4d62a2e6645b7ca662ffac310e86c (patch) | |
tree | b3b1a1797791cd8cf763254a3fd88f7d35a2340c /krebs/5pkgs/simple/K_belwagen.nix | |
parent | ef48f536a3e539b215bb004b512e62c2d0f96907 (diff) | |
parent | 31fc5a95c735ab3b9b832d407195e422c07cd4c0 (diff) |
Merge remote-tracking branch 'lass/master'
Diffstat (limited to 'krebs/5pkgs/simple/K_belwagen.nix')
-rw-r--r-- | krebs/5pkgs/simple/K_belwagen.nix | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/krebs/5pkgs/simple/K_belwagen.nix b/krebs/5pkgs/simple/K_belwagen.nix new file mode 100644 index 000000000..80d377b0c --- /dev/null +++ b/krebs/5pkgs/simple/K_belwagen.nix @@ -0,0 +1,38 @@ +{ lib, pkgs, stdenv }: + +stdenv.mkDerivation { + pname = "K_belwagen"; + version = "1.0"; + + src = pkgs.painload; + sourceRoot = "source/K_belwagen"; + + buildInputs = [ + pkgs.jack1 + pkgs.pkgconfig + ]; + + patchPhase = '' + sed -i ' + s@^cd@# &@ + s@^make@# &@ + s@^jackd@# &@ + s@^trap@# &@ + + s@^set.*@&\nPATH=${lib.makeBinPath [ + pkgs.bc + pkgs.coreutils + ]}; export PATH@ + + s@\./a\.out@'"$out"'/lib/a.out@ + ' alarm + ''; + + installPhase = '' + mkdir -p $out/lib + mkdir -p $out/bin + + cp alarm $out/bin + cp a.out $out/lib + ''; +} |