uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
32
pkgs/build-support/icon-conv-tools/default.nix
Normal file
32
pkgs/build-support/icon-conv-tools/default.nix
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
{ 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;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue