2021-01-24 00:40:18 +00:00
|
|
|
{ lib, stdenv, icoutils }:
|
2016-04-25 11:16:47 +00:00
|
|
|
|
|
|
|
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;
|
|
|
|
|
2021-01-24 00:40:18 +00:00
|
|
|
meta = with lib; {
|
2016-04-25 11:16:47 +00:00
|
|
|
description = "Tools for icon conversion specific to nix package manager";
|
2021-01-24 00:40:18 +00:00
|
|
|
maintainers = with maintainers; [ jraygauthier ];
|
|
|
|
platforms = platforms.linux;
|
2016-04-25 11:16:47 +00:00
|
|
|
};
|
2016-08-02 18:30:17 +00:00
|
|
|
}
|