stockholm/krebs/5pkgs/simple/K_belwagen.nix

39 lines
596 B
Nix
Raw Normal View History

2022-01-11 19:57:11 +00:00
{ lib, pkgs, stdenv }:
stdenv.mkDerivation {
pname = "K_belwagen";
version = "1.0";
src = pkgs.painload;
sourceRoot = "source/K_belwagen";
buildInputs = [
pkgs.jack1
2022-09-27 10:30:30 +00:00
pkgs.pkg-config
2022-01-11 19:57:11 +00:00
];
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
'';
}