mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-11-06 10:16:44 +01:00
2258b21e4b
Build-tested on x86_64 Linux and on Darwin.
26 lines
515 B
Nix
26 lines
515 B
Nix
{ stdenv, fetchurl, gawk, cmake }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "ilbc-rfc3951";
|
|
|
|
script = ./extract-cfile.awk;
|
|
|
|
rfc3951 = fetchurl {
|
|
url = http://www.ietf.org/rfc/rfc3951.txt;
|
|
sha256 = "0zf4mvi3jzx6zjrfl2rbhl2m68pzbzpf1vbdmn7dqbfpcb67jpdy";
|
|
};
|
|
|
|
nativeBuildInputs = [ cmake ];
|
|
|
|
unpackPhase = ''
|
|
mkdir -v ${name}
|
|
cd ${name}
|
|
${gawk}/bin/gawk -f ${script} ${rfc3951}
|
|
cp -v ${./CMakeLists.txt} CMakeLists.txt
|
|
'';
|
|
|
|
meta = {
|
|
platforms = stdenv.lib.platforms.unix;
|
|
};
|
|
}
|