icon-conv-tools: Don't depend on the .nix file at build time

The `src = ./.;` would cause spurious rebuild of the package since the
output hash now depends on the contents of the .nix file.
This commit is contained in:
Tuomas Tynkkynen 2016-08-02 21:30:17 +03:00
parent 9b5dcffe22
commit 55b23aeff5

View File

@ -3,23 +3,23 @@
stdenv.mkDerivation { stdenv.mkDerivation {
name = "icon-conv-tools-0.0.0"; name = "icon-conv-tools-0.0.0";
src = ./.; src = ./bin;
buildInputs = [ icoutils ]; buildInputs = [ icoutils ];
patchPhase = '' patchPhase = ''
substituteInPlace "./bin/extractWinRscIconsToStdFreeDesktopDir.sh" \ substituteInPlace extractWinRscIconsToStdFreeDesktopDir.sh \
--replace "icotool" "${icoutils}/bin/icotool" \ --replace "icotool" "${icoutils}/bin/icotool" \
--replace "wrestool" "${icoutils}/bin/wrestool" --replace "wrestool" "${icoutils}/bin/wrestool"
''; '';
buildPhase = '' buildPhase = ''
mkdir -p "$out/bin" mkdir -p "$out/bin"
cp -p "./bin/"* "$out/bin" cp -p * "$out/bin"
''; '';
installPhase = "true"; installPhase = "true";
dontPatchELF = true; dontPatchELF = true;
dontStrip = true; dontStrip = true;
@ -27,5 +27,4 @@ stdenv.mkDerivation {
description = "Tools for icon conversion specific to nix package manager"; description = "Tools for icon conversion specific to nix package manager";
maintainers = with stdenv.lib.maintainers; [ jraygauthier ]; maintainers = with stdenv.lib.maintainers; [ jraygauthier ];
}; };
}
}