blob: f4b38f4f7abcd4eafb814892dfbebaa8e1e3cced (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
{ fetchurl, stdenv }:
stdenv.mkDerivation {
name = "unifdef-1.0";
src = fetchurl {
url = http://www.cs.cmu.edu/~ajw/public/dist/unifdef-1.0.tar.gz;
sha256 = "1bcxq7qgf6r98m6l277fx6s0gn9sr4vn7f3s0r5mwx79waqk0k6i";
};
buildPhase = ''
make unifdef
'';
installPhase = ''
mkdir -p $out/bin
cp unifdef $out/bin
'';
meta = {
description = "useful for removing #ifdef'ed lines from a file while otherwise leaving the file alone";
};
}
|