2016-04-25 11:16:47 +00:00
|
|
|
{ stdenv, icoutils }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
name = "icon-conv-tools-0.0.0";
|
|
|
|
|
2016-08-02 18:30:17 +00:00
|
|
|
src = ./bin;
|
2016-04-25 11:16:47 +00:00
|
|
|
|
|
|
|
buildInputs = [ icoutils ];
|
|
|
|
|
|
|
|
patchPhase = ''
|
2016-08-02 18:30:17 +00:00
|
|
|
substituteInPlace extractWinRscIconsToStdFreeDesktopDir.sh \
|
2016-04-25 11:16:47 +00:00
|
|
|
--replace "icotool" "${icoutils}/bin/icotool" \
|
|
|
|
--replace "wrestool" "${icoutils}/bin/wrestool"
|
|
|
|
'';
|
|
|
|
|
|
|
|
buildPhase = ''
|
|
|
|
mkdir -p "$out/bin"
|
2016-08-02 18:30:17 +00:00
|
|
|
cp -p * "$out/bin"
|
2016-04-25 11:16:47 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
installPhase = "true";
|
2016-08-02 18:30:17 +00:00
|
|
|
|
2016-04-25 11:16:47 +00: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 17:50:55 +00:00
|
|
|
platforms = with stdenv.lib.platforms; linux;
|
2016-04-25 11:16:47 +00:00
|
|
|
};
|
2016-08-02 18:30:17 +00:00
|
|
|
}
|