summary refs log tree commit diff
path: root/pkgs/build-support/icon-conv-tools/default.nix
blob: 0ea18d8768ac890e145dc4f95e4ed6693faba295 (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
{ 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 = {
    description = "Tools for icon conversion specific to nix package manager";
    maintainers = with stdenv.lib.maintainers; [ jraygauthier ];
    platforms = with stdenv.lib.platforms; linux;
  };
}