Files
Ihar HrachyshkaandWolfgang Walther 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

71 lines
1.3 KiB
Nix

{
lib,
stdenv,
fetchurl,
cmake,
pkg-config,
zlib,
libpng,
libjpeg,
giflib,
libtiff,
}:
stdenv.mkDerivation rec {
pname = "pslib";
version = "0.4.8";
src = fetchurl {
name = "${pname}-snixource-${version}.tar.gz";
url = "mirror://sourceforge/${pname}/${pname}-${version}.tar.gz";
sha256 = "sha256-gaWNvBLuUUy0o+HWCOyG6KmzxDrYCY6PV3WbA/jjH64=";
};
patches = [
./cmake4.patch
];
nativeBuildInputs = [
cmake
pkg-config
];
buildInputs = [
zlib
libpng
libjpeg
giflib
libtiff
];
doCheck = true;
outputs = [
"out"
"dev"
"doc"
];
installPhase = ''
mkdir -p $out/lib
for path in *.dylib *.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 = {
description = "C-library for generating multi page PostScript documents";
homepage = "https://pslib.sourceforge.net/";
changelog = "https://sourceforge.net/p/pslib/git/ci/master/tree/pslib/ChangeLog";
license = lib.licenses.gpl2;
maintainers = with lib.maintainers; [ ShamrockLee ];
platforms = lib.platforms.unix;
};
}