2021-01-21 17:00:13 +00:00
|
|
|
{ lib, stdenv, fetchurl, gawk, cmake }:
|
2009-04-21 23:18:09 +00:00
|
|
|
|
2011-06-07 21:49:18 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2008-02-10 17:35:03 +00:00
|
|
|
name = "ilbc-rfc3951";
|
|
|
|
|
2016-03-14 20:20:18 +00:00
|
|
|
script = ./extract-cfile.awk;
|
2011-06-07 21:49:18 +00:00
|
|
|
|
|
|
|
rfc3951 = fetchurl {
|
2020-04-01 01:11:51 +00:00
|
|
|
url = "http://www.ietf.org/rfc/rfc3951.txt";
|
2011-06-07 21:49:18 +00:00
|
|
|
sha256 = "0zf4mvi3jzx6zjrfl2rbhl2m68pzbzpf1vbdmn7dqbfpcb67jpdy";
|
|
|
|
};
|
|
|
|
|
2012-12-28 18:20:09 +00:00
|
|
|
nativeBuildInputs = [ cmake ];
|
2011-06-07 21:49:18 +00:00
|
|
|
|
|
|
|
unpackPhase = ''
|
|
|
|
mkdir -v ${name}
|
|
|
|
cd ${name}
|
|
|
|
${gawk}/bin/gawk -f ${script} ${rfc3951}
|
2012-03-16 17:15:47 +00:00
|
|
|
cp -v ${./CMakeLists.txt} CMakeLists.txt
|
2011-06-07 21:49:18 +00:00
|
|
|
'';
|
|
|
|
|
2016-08-02 16:06:29 +00:00
|
|
|
meta = {
|
2021-01-21 17:00:13 +00:00
|
|
|
platforms = lib.platforms.unix;
|
2016-08-02 16:06:29 +00:00
|
|
|
};
|
2008-02-10 17:35:03 +00:00
|
|
|
}
|