Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib 2, stdenv 3, fetchzip 4, autoreconfHook 5, dos2unix 6}: 7 8stdenv.mkDerivation rec { 9 pname = "libpgf"; 10 version = "7.21.7"; 11 12 src = fetchzip { 13 url = "mirror://sourceforge/${pname}/${pname}/${version}/${pname}.zip"; 14 hash = "sha256-TAWIuikijfyeTRetZWoMMdB/FeGAR7ZjNssVxUevlVg="; 15 }; 16 17 postPatch = '' 18 find . -type f | xargs dos2unix 19 mv README.txt README 20 ''; 21 22 nativeBuildInputs = [ 23 autoreconfHook 24 dos2unix 25 ]; 26 27 meta = { 28 homepage = "https://www.libpgf.org/"; 29 description = "Progressive Graphics Format"; 30 license = lib.licenses.lgpl21Plus; 31 platforms = lib.platforms.unix; 32 }; 33}