1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-28 00:22:13 +00:00
nixpkgs/pkgs/build-support/icon-conv-tools/default.nix
2021-06-30 09:55:22 +02:00

33 lines
682 B
Nix

{ 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;
meta = with lib; {
description = "Tools for icon conversion specific to nix package manager";
maintainers = with maintainers; [ jraygauthier ];
platforms = platforms.linux;
};
}