nixpkgs/pkgs/by-name/li/libpgf/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

34 lines
625 B
Nix
Raw Normal View History

2023-02-09 17:01:10 +00:00
{ lib
, stdenv
, fetchzip
, autoreconfHook
, dos2unix
}:
stdenv.mkDerivation rec {
2019-08-13 22:52:01 +01:00
pname = "libpgf";
2023-02-09 17:01:10 +00:00
version = "7.21.7";
src = fetchzip {
url = "mirror://sourceforge/${pname}/${pname}/${version}/${pname}.zip";
2023-02-09 17:01:10 +00:00
hash = "sha256-TAWIuikijfyeTRetZWoMMdB/FeGAR7ZjNssVxUevlVg=";
};
2023-02-09 17:01:10 +00:00
postPatch = ''
find . -type f | xargs dos2unix
mv README.txt README
'';
2023-02-09 17:01:10 +00:00
nativeBuildInputs = [
autoreconfHook
dos2unix
];
meta = {
homepage = "https://www.libpgf.org/";
description = "Progressive Graphics Format";
license = lib.licenses.lgpl21Plus;
platforms = lib.platforms.unix;
};
}