14 stdenv.mkDerivation rec {
19 name = "${pname}-snixource-${version}.tar.gz";
20 url = "mirror://sourceforge/${pname}/${pname}-${version}.tar.gz";
21 sha256 = "sha256-gaWNvBLuUUy0o+HWCOyG6KmzxDrYCY6PV3WbA/jjH64=";
36 env = lib.optionalAttrs stdenv.hostPlatform.isDarwin {
37 NIX_CFLAGS_COMPILE = "-Wno-error=implicit-function-declaration";
50 for path in *.dylib *.so *.so.* *.o *.o.*; do
54 mv ../include/libps $dev/include
55 if test -d nix-support; then
58 mkdir -p $doc/share/doc/${pname}
59 cp -r ../doc/. $doc/share/doc/${pname}
63 description = "C-library for generating multi page PostScript documents";
64 homepage = "https://pslib.sourceforge.net/";
65 changelog = "https://sourceforge.net/p/pslib/git/ci/master/tree/pslib/ChangeLog";
66 license = licenses.gpl2;
67 maintainers = with maintainers; [ ShamrockLee ];
68 platforms = platforms.unix;