2024-06-30 08:12:46 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
stdenv,
|
|
|
|
icoutils,
|
|
|
|
}:
|
2024-05-02 00:46:19 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
pname = "icon-conv-tools";
|
|
|
|
version = "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 = with lib; {
|
|
|
|
description = "Tools for icon conversion specific to nix package manager";
|
|
|
|
maintainers = with maintainers; [ jraygauthier ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|