2021-02-05 17:12:51 +00:00
|
|
|
{ lib, stdenv, icoutils }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
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;
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Tools for icon conversion specific to nix package manager";
|
2021-02-05 17:12:51 +00:00
|
|
|
maintainers = with maintainers; [ jraygauthier ];
|
|
|
|
platforms = platforms.linux;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|