diff options
author | lassulus <lassulus@lassul.us> | 2022-01-11 21:01:38 +0100 |
---|---|---|
committer | lassulus <lassulus@lassul.us> | 2022-01-11 21:01:38 +0100 |
commit | 660846db99c51175ef6d5eedda32681292285efe (patch) | |
tree | 53f71a0e6a4596a20fbbfbb7adb984ca36778dfe /krebs/5pkgs/simple/K_belwagen.nix | |
parent | 17892c2fa0763f31a854d5b5b8fe87a2465ad70d (diff) | |
parent | c76269e7084ce3c07956ea04654af7eed347d703 (diff) |
Merge remote-tracking branch 'ni/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 + ''; +} |