diff options
author | Lassulus <github@lassul.us> | 2021-01-02 21:17:17 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-02 21:17:17 +0100 |
commit | a460b167f4ef3646341a8dc59195e5bac945ea77 (patch) | |
tree | b3d610c191f3c6b05ee681e86134f08a872e87a4 /pkgs/development | |
parent | 641e5f572f1e1ebe2202d3d65dfe47fef69291e1 (diff) | |
parent | c5c2855647a7019c390d42ebf8451498057594d0 (diff) |
Merge pull request #107058 from ShamrockLee/pslib
pslib: Init at 0.4.6
Diffstat (limited to 'pkgs/development')
-rw-r--r-- | pkgs/development/libraries/pslib/default.nix | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/pkgs/development/libraries/pslib/default.nix b/pkgs/development/libraries/pslib/default.nix new file mode 100644 index 0000000000000..08accd5d7df19 --- /dev/null +++ b/pkgs/development/libraries/pslib/default.nix @@ -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 ]; + }; +} |