Merge pull request #241869 from afh/modernize-psutils

Modernize psutils and fix Darwin build

authored by

Weijia Wang and committed by
GitHub
76d44eb5 10904870

+7 -4
+7 -4
pkgs/tools/typesetting/psutils/default.nix
··· 5 version = "17"; 6 7 src = fetchurl { 8 - url = "ftp://ftp.knackered.org/pub/psutils/psutils-p${version}.tar.gz"; 9 - sha256 = "1r4ab1fvgganm02kmm70b2r1azwzbav2am41gbigpa2bb1wynlrq"; 10 }; 11 12 configurePhase = '' ··· 14 -e "s,/usr/local,$out," \ 15 Makefile.unix > Makefile 16 ''; 17 18 preInstall = '' 19 mkdir -p $out/bin $out/share/man/man1 20 ''; 21 22 - meta = with lib; { 23 description = "Collection of useful utilities for manipulating PS documents"; 24 homepage = "http://knackered.knackered.org/angus/psutils/"; 25 - license = licenses.bsd3; 26 }; 27 }
··· 5 version = "17"; 6 7 src = fetchurl { 8 + url = "http://knackered.knackered.org/angus/download/${pname}/${pname}-p${version}.tar.gz"; 9 + hash = "sha256-OFPreVhLqPvieoFUJbZan38Vsljg1DoFqFa9t11YiuQ="; 10 }; 11 12 configurePhase = '' ··· 14 -e "s,/usr/local,$out," \ 15 Makefile.unix > Makefile 16 ''; 17 + 18 + makeFlags = [ "CC=${stdenv.cc.targetPrefix}cc" ]; 19 20 preInstall = '' 21 mkdir -p $out/bin $out/share/man/man1 22 ''; 23 24 + meta = { 25 description = "Collection of useful utilities for manipulating PS documents"; 26 homepage = "http://knackered.knackered.org/angus/psutils/"; 27 + license = lib.licenses.bsd3; 28 + platforms = lib.platforms.unix; 29 }; 30 }