commit
a460b167f4
2 changed files with 45 additions and 0 deletions
43
pkgs/development/libraries/pslib/default.nix
Normal file
43
pkgs/development/libraries/pslib/default.nix
Normal file
|
@ -0,0 +1,43 @@
|
|||
{ stdenv, fetchurl, cmake, pkgconfig, zlib, libpng, libjpeg, libungif, libtiff
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "pslib";
|
||||
version = "0.4.6";
|
||||
|
||||
src = fetchurl {
|
||||
name = "${pname}-snixource-${version}.tar.gz";
|
||||
url = "mirror://sourceforge/${pname}/${pname}-${version}.tar.gz";
|
||||
sha256 = "0m191ckqj1kj2yvxiilqw26x4vrn7pnlc2vy636yphjxr02q8bk4";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ cmake pkgconfig ];
|
||||
buildInputs = [ zlib libpng libjpeg libungif libtiff ];
|
||||
|
||||
doCheck = true;
|
||||
|
||||
outputs = [ "out" "dev" "doc" ];
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out/lib
|
||||
for path in *.so *.so.* *.o *.o.*; do
|
||||
mv $path $out/lib/
|
||||
done
|
||||
mkdir -p $dev/include
|
||||
mv ../include/libps $dev/include
|
||||
if test -d nix-support; then
|
||||
mv nix-support $dev
|
||||
fi
|
||||
mkdir -p $doc/share/doc/${pname}
|
||||
cp -r ../doc/. $doc/share/doc/${pname}
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "A C-library for generating multi page PostScript documents";
|
||||
homepage = "http://pslib.sourceforge.net/";
|
||||
changelog =
|
||||
"https://sourceforge.net/p/pslib/git/ci/master/tree/pslib/ChangeLog";
|
||||
license = licenses.gpl2;
|
||||
maintainers = with maintainers; [ ShamrockLee ];
|
||||
};
|
||||
}
|
|
@ -15548,6 +15548,8 @@ in
|
|||
gnupth = callPackage ../development/libraries/pth { };
|
||||
pth = if stdenv.hostPlatform.isMusl then npth else gnupth;
|
||||
|
||||
pslib = callPackage ../development/libraries/pslib { };
|
||||
|
||||
pstreams = callPackage ../development/libraries/pstreams {};
|
||||
|
||||
pugixml = callPackage ../development/libraries/pugixml { };
|
||||
|
|
Loading…
Reference in a new issue