sdrangel: fix build on x86_64-darwin
[NixPkgs.git] / pkgs / build-support / icon-conv-tools / default.nix
blob442f1f2235fa60b2f9d5a9cffd392e5fb154dfff
1 { lib, stdenv, icoutils }:
3 stdenv.mkDerivation {
4   pname = "icon-conv-tools";
5   version = "0.0.0";
7   src = ./bin;
9   buildInputs = [ icoutils ];
11   patchPhase = ''
12     substituteInPlace extractWinRscIconsToStdFreeDesktopDir.sh \
13       --replace "icotool" "${icoutils}/bin/icotool" \
14       --replace "wrestool" "${icoutils}/bin/wrestool"
15   '';
17   buildPhase = ''
18     mkdir -p "$out/bin"
19     cp -p * "$out/bin"
20   '';
22   installPhase = "true";
24   dontPatchELF = true;
25   dontStrip = true;
27   meta = with lib; {
28     description = "Tools for icon conversion specific to nix package manager";
29     maintainers = with maintainers; [ jraygauthier ];
30     platforms = platforms.linux;
31   };