2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv, fetchurl, perl }:
|
2016-07-27 08:26:15 +00:00
|
|
|
|
2021-08-02 09:13:00 +00:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "psutils";
|
|
|
|
version = "17";
|
2016-07-27 08:26:15 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2023-07-06 08:56:18 +00:00
|
|
|
url = "http://knackered.knackered.org/angus/download/${pname}/${pname}-p${version}.tar.gz";
|
|
|
|
hash = "sha256-OFPreVhLqPvieoFUJbZan38Vsljg1DoFqFa9t11YiuQ=";
|
2016-07-27 08:26:15 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
configurePhase = ''
|
|
|
|
sed -e 's,/usr/local/bin/perl,${perl}/bin/perl,' \
|
|
|
|
-e "s,/usr/local,$out," \
|
|
|
|
Makefile.unix > Makefile
|
|
|
|
'';
|
|
|
|
|
2023-07-06 08:55:57 +00:00
|
|
|
makeFlags = [ "CC=${stdenv.cc.targetPrefix}cc" ];
|
|
|
|
|
2016-07-27 08:26:15 +00:00
|
|
|
preInstall = ''
|
|
|
|
mkdir -p $out/bin $out/share/man/man1
|
|
|
|
'';
|
|
|
|
|
2023-07-06 08:56:18 +00:00
|
|
|
meta = {
|
2016-07-27 08:26:15 +00:00
|
|
|
description = "Collection of useful utilities for manipulating PS documents";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "http://knackered.knackered.org/angus/psutils/";
|
2023-07-06 08:56:18 +00:00
|
|
|
license = lib.licenses.bsd3;
|
2023-07-06 11:38:36 +00:00
|
|
|
platforms = lib.platforms.unix;
|
2016-07-27 08:26:15 +00:00
|
|
|
};
|
|
|
|
}
|