blob: c7f68f2bd52b98cdfad4057f51c200abd5c34864 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
{ lib, stdenv, fetchurl, perl }:
stdenv.mkDerivation rec {
pname = "psutils";
version = "17";
src = fetchurl {
url = "ftp://ftp.knackered.org/pub/psutils/psutils-p${version}.tar.gz";
sha256 = "1r4ab1fvgganm02kmm70b2r1azwzbav2am41gbigpa2bb1wynlrq";
};
configurePhase = ''
sed -e 's,/usr/local/bin/perl,${perl}/bin/perl,' \
-e "s,/usr/local,$out," \
Makefile.unix > Makefile
'';
preInstall = ''
mkdir -p $out/bin $out/share/man/man1
'';
meta = with lib; {
description = "Collection of useful utilities for manipulating PS documents";
homepage = "http://knackered.knackered.org/angus/psutils/";
license = licenses.bsd3;
};
}
|