Skip to content

Commit

Permalink
nixify Kübelwagen (without UTF-8 :/)
Browse files Browse the repository at this point in the history
  • Loading branch information
4z3 committed Dec 20, 2014
1 parent b7ea9e0 commit 5c7c7d2
Show file tree
Hide file tree
Showing 6 changed files with 25 additions and 0 deletions.
File renamed without changes.
File renamed without changes.
25 changes: 25 additions & 0 deletions K_belwagen/default.nix
Original file line number Diff line number Diff line change
@@ -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
'';
}
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 5c7c7d2

Please sign in to comment.