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
31
pkgs/os-specific/linux/cramfsswap/default.nix
Normal file
31
pkgs/os-specific/linux/cramfsswap/default.nix
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
{lib, stdenv, fetchurl, zlib}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "cramfsswap";
|
||||
version = "1.4.2";
|
||||
|
||||
src = fetchurl {
|
||||
url = "mirror://debian/pool/main/c/cramfsswap/${pname}_${version}.tar.xz";
|
||||
sha256 = "10mj45zx71inaa3l1d81g64f7yn1xcprvq4v4yzpdwbxqmqaikw1";
|
||||
};
|
||||
# https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=996964
|
||||
patches = [ ./parallel-make.patch ];
|
||||
|
||||
# Needed for cross-compilation
|
||||
postPatch = ''
|
||||
substituteInPlace Makefile --replace 'strip ' '$(STRIP) '
|
||||
'';
|
||||
|
||||
buildInputs = [zlib];
|
||||
|
||||
installPhase = ''
|
||||
install --target $out/bin -D cramfsswap
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "Swap endianess of a cram filesystem (cramfs)";
|
||||
homepage = "https://packages.debian.org/sid/utils/cramfsswap";
|
||||
license = licenses.gpl2Only;
|
||||
platforms = platforms.linux;
|
||||
};
|
||||
}
|
||||
14
pkgs/os-specific/linux/cramfsswap/parallel-make.patch
Normal file
14
pkgs/os-specific/linux/cramfsswap/parallel-make.patch
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
Fix parallel build failure bya dding the dependency.
|
||||
|
||||
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=996964
|
||||
--- a/Makefile
|
||||
+++ b/Makefile
|
||||
@@ -6,7 +6,7 @@ debian: cramfsswap
|
||||
cramfsswap: cramfsswap.c
|
||||
$(CC) -Wall -g -O $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) -o cramfsswap cramfsswap.c -lz
|
||||
|
||||
-strip:
|
||||
+strip: cramfsswap
|
||||
strip cramfsswap
|
||||
|
||||
install: cramfsswap
|
||||
Loading…
Add table
Add a link
Reference in a new issue