From decef6d4788e12634991e196aa751c66e25dbe6f Mon Sep 17 00:00:00 2001 From: tv Date: Tue, 11 Jan 2022 20:36:04 +0100 Subject: painload: c113487 -> a963b45 --- krebs/5pkgs/simple/painload/default.nix | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'krebs/5pkgs/simple') diff --git a/krebs/5pkgs/simple/painload/default.nix b/krebs/5pkgs/simple/painload/default.nix index 3b1c83b42..e4cb11604 100644 --- a/krebs/5pkgs/simple/painload/default.nix +++ b/krebs/5pkgs/simple/painload/default.nix @@ -1,7 +1,9 @@ -{ fetchgit, ... }: +{ pkgs }: -fetchgit { - url = https://github.com/krebs/painload; - rev = "c113487f73713a03b1a139b22bb34b86234d0495"; - sha256 = "1irxklnmvm8wsa70ypjahkr8rfqq7357vcy8r0x1sfncs1hy6gr6"; +pkgs.fetchFromGitHub { + owner = "krebs"; + repo = "painload"; + rev = "a963b45d5a3921f19189575420cc7f8f946345b5"; + sha256 = "03q8rxpzy4l9nd4wv0107s0ck3dhfzkfy1rabf8srabkwl0c3vsc"; + fetchSubmodules = true; } -- cgit v1.2.3 From c76269e7084ce3c07956ea04654af7eed347d703 Mon Sep 17 00:00:00 2001 From: tv Date: Tue, 11 Jan 2022 20:57:11 +0100 Subject: K_belwagen: init at 1.0.0 --- krebs/5pkgs/simple/K_belwagen.nix | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 krebs/5pkgs/simple/K_belwagen.nix (limited to 'krebs/5pkgs/simple') 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 + ''; +} -- cgit v1.2.3