3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/build-support/icon-conv-tools/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

33 lines
682 B
Nix
Raw Normal View History

2021-01-24 00:40:18 +00:00
{ lib, stdenv, icoutils }:
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;
2021-01-24 00:40:18 +00:00
meta = with lib; {
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;
};
}