2011-06-07 23:49:18 +02:00
|
|
|
{ stdenv, fetchurl, gawk, cmake }:
|
2009-04-22 01:18:09 +02:00
|
|
|
|
2011-06-07 23:49:18 +02:00
|
|
|
stdenv.mkDerivation rec {
|
2008-02-10 18:35:03 +01:00
|
|
|
name = "ilbc-rfc3951";
|
|
|
|
|
2011-06-07 23:49:18 +02:00
|
|
|
script = fetchurl {
|
|
|
|
url = http://ilbcfreeware.org/documentation/extract-cfile.awk;
|
|
|
|
sha256 = "155izy7p7azak1h6bgafvh84b1605zyw14k2s4pyl5nd4saap5c6";
|
2008-02-10 18:35:03 +01:00
|
|
|
};
|
2011-06-07 23:49:18 +02:00
|
|
|
|
|
|
|
rfc3951 = fetchurl {
|
|
|
|
url = http://www.ietf.org/rfc/rfc3951.txt;
|
|
|
|
sha256 = "0zf4mvi3jzx6zjrfl2rbhl2m68pzbzpf1vbdmn7dqbfpcb67jpdy";
|
|
|
|
};
|
|
|
|
|
|
|
|
buildNativeInputs = [ cmake ];
|
|
|
|
|
|
|
|
unpackPhase = ''
|
|
|
|
mkdir -v ${name}
|
|
|
|
cd ${name}
|
|
|
|
${gawk}/bin/gawk -f ${script} ${rfc3951}
|
2012-03-16 18:15:47 +01:00
|
|
|
cp -v ${./CMakeLists.txt} CMakeLists.txt
|
2011-06-07 23:49:18 +02:00
|
|
|
'';
|
|
|
|
|
2008-02-10 18:35:03 +01:00
|
|
|
}
|