nixpkgs/pkgs/build-support/icon-conv-tools/default.nix
Tuomas Tynkkynen 55b23aeff5 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.
2016-08-02 21:30:17 +03:00

31 lines
629 B
Nix

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