summary refs log tree commit diff
path: root/pkgs/build-support/icon-conv-tools/default.nix
blob: 79d3838e6884220335bb24a4183c047d8740bd5a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
{ lib, stdenv, icoutils }:

stdenv.mkDerivation {
  name = "icon-conv-tools-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;
  };
}