summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortv <tv@shackspace.de>2014-12-20 23:50:33 +0100
committertv <tv@shackspace.de>2014-12-20 23:50:33 +0100
commit5c7c7d242fa943ec7a96de4a43efa3fc6b1ef77a (patch)
treeb0207325db6b66a9e346956e3793224022be0900
parentb7ea9e035a729186afb57894891d3bdec43aa9ae (diff)
nixify Kübelwagen (without UTF-8 :/)
-rw-r--r--K_belwagen/Makefile (renamed from Kübelwagen/Makefile)0
-rwxr-xr-xK_belwagen/alarm (renamed from Kübelwagen/alarm)0
-rw-r--r--K_belwagen/default.nix25
-rw-r--r--K_belwagen/index.c (renamed from Kübelwagen/index.c)0
-rwxr-xr-xK_belwagen/playmobil (renamed from Kübelwagen/playmobil)0
-rw-r--r--K_belwagen/sin.js (renamed from Kübelwagen/sin.js)0
6 files changed, 25 insertions, 0 deletions
diff --git a/Kübelwagen/Makefile b/K_belwagen/Makefile
index 9be84e13..9be84e13 100644
--- a/Kübelwagen/Makefile
+++ b/K_belwagen/Makefile
diff --git a/Kübelwagen/alarm b/K_belwagen/alarm
index a117c433..a117c433 100755
--- a/Kübelwagen/alarm
+++ b/K_belwagen/alarm
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
+ '';
+}
diff --git a/Kübelwagen/index.c b/K_belwagen/index.c
index 9a15c7c3..9a15c7c3 100644
--- a/Kübelwagen/index.c
+++ b/K_belwagen/index.c
diff --git a/Kübelwagen/playmobil b/K_belwagen/playmobil
index 51ed70d6..51ed70d6 100755
--- a/Kübelwagen/playmobil
+++ b/K_belwagen/playmobil
diff --git a/Kübelwagen/sin.js b/K_belwagen/sin.js
index 0f472715..0f472715 100644
--- a/Kübelwagen/sin.js
+++ b/K_belwagen/sin.js