2016-04-25 12:16:47 +01:00
|
|
|
{ stdenv, icoutils }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
name = "icon-conv-tools-0.0.0";
|
|
|
|
|
2016-08-02 19:30:17 +01:00
|
|
|
src = ./bin;
|
2016-04-25 12:16:47 +01:00
|
|
|
|
|
|
|
buildInputs = [ icoutils ];
|
|
|
|
|
|
|
|
patchPhase = ''
|
2016-08-02 19:30:17 +01:00
|
|
|
substituteInPlace extractWinRscIconsToStdFreeDesktopDir.sh \
|
2016-04-25 12:16:47 +01:00
|
|
|
--replace "icotool" "${icoutils}/bin/icotool" \
|
|
|
|
--replace "wrestool" "${icoutils}/bin/wrestool"
|
|
|
|
'';
|
|
|
|
|
|
|
|
buildPhase = ''
|
|
|
|
mkdir -p "$out/bin"
|
2016-08-02 19:30:17 +01:00
|
|
|
cp -p * "$out/bin"
|
2016-04-25 12:16:47 +01:00
|
|
|
'';
|
|
|
|
|
|
|
|
installPhase = "true";
|
2016-08-02 19:30:17 +01:00
|
|
|
|
2016-04-25 12:16:47 +01:00
|
|
|
dontPatchELF = true;
|
|
|
|
dontStrip = true;
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Tools for icon conversion specific to nix package manager";
|
|
|
|
maintainers = with stdenv.lib.maintainers; [ jraygauthier ];
|
|
|
|
};
|
2016-08-02 19:30:17 +01:00
|
|
|
}
|