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
29
pkgs/development/libraries/libx86/default.nix
Normal file
29
pkgs/development/libraries/libx86/default.nix
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
{ lib, stdenv, fetchurl }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "libx86";
|
||||
version = "1.1";
|
||||
src = fetchurl {
|
||||
url = "https://www.codon.org.uk/~mjg59/libx86/downloads/${pname}-${version}.tar.gz";
|
||||
sha256 = "0j6h6bc02c6qi0q7c1ncraz4d1hkm5936r35rfsp4x1jrc233wav";
|
||||
};
|
||||
patches = [./constants.patch ./non-x86.patch ];
|
||||
|
||||
# using BACKEND=x86emu on 64bit systems fixes:
|
||||
# http://www.mail-archive.com/suspend-devel@lists.sourceforge.net/msg02355.html
|
||||
makeFlags = [
|
||||
"DESTDIR=$(out)"
|
||||
] ++ lib.optional (!stdenv.isi686) "BACKEND=x86emu";
|
||||
|
||||
preBuild = ''
|
||||
sed -i lrmi.c -e 's@defined(__i386__)@(defined(__i386__) || defined(__x86_64__))@'
|
||||
sed -e s@/usr@@ -i Makefile
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "Real-mode x86 code emulator";
|
||||
maintainers = with maintainers; [ raskin ];
|
||||
platforms = [ "x86_64-linux" "i686-linux" ];
|
||||
license = licenses.mit;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue