treewide: use less phases if not necessary

This removes some skipping of e.g. fixupPhase and cleans up occurences
where this led to duplicating code
This commit is contained in:
Robin Gloster
2017-08-11 11:40:36 +02:00
parent 72457cdebb
commit 28cc2642f0
16 changed files with 43 additions and 74 deletions
+1 -10
View File
@@ -25,15 +25,12 @@ stdenv.mkDerivation rec {
TimeDate # == DateParse
HTMLTemplate
# IO::Socket::Socks is not in nixpkgs
# IOSocketSocks
# IOSocketSocks
IOSocketSSL
NetSSLeay
SOAPLite
]);
phases = [ "unpackPhase" "installPhase" "patchPhase" "postInstall" ];
installPhase = ''
mkdir -p $out/bin
# I user `cd` rather than `cp $out/* ...` b/c the * breaks syntax
@@ -42,11 +39,7 @@ stdenv.mkDerivation rec {
cp -r * $out/bin
cd $out/bin
chmod +x *.pl
'';
patchPhase = "patchShebangs $out";
postInstall = ''
find $out -name '*.pl' -executable | while read path; do
wrapProgram "$path" \
--prefix PERL5LIB : $PERL5LIB:$out/bin \
@@ -66,6 +59,4 @@ stdenv.mkDerivation rec {
# http://getpopfile.org/docs/faq:systemrequirements
platforms = stdenv.lib.platforms.linux;
};
}