mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-01 01:51:24 +00:00
21f17d69f6
Build-tested on x86_64 Linux & Mac.
32 lines
679 B
Nix
32 lines
679 B
Nix
{ 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;
|
|
};
|
|
}
|