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
47
pkgs/os-specific/linux/v86d/default.nix
Normal file
47
pkgs/os-specific/linux/v86d/default.nix
Normal file
|
|
@ -0,0 +1,47 @@
|
|||
{ lib
|
||||
, stdenv
|
||||
, fetchFromGitHub
|
||||
, kernel
|
||||
, klibc
|
||||
}:
|
||||
|
||||
let
|
||||
pversion = "0.1.10";
|
||||
in stdenv.mkDerivation rec {
|
||||
pname = "v86d";
|
||||
version = "${pversion}-${kernel.version}";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "mjanusz";
|
||||
repo = "v86d";
|
||||
rev = "v86d-${pversion}";
|
||||
hash = "sha256-95LRzVbO/DyddmPwQNNQ290tasCGoQk7FDHlst6LkbA=";
|
||||
};
|
||||
|
||||
patchPhase = ''
|
||||
patchShebangs configure
|
||||
'';
|
||||
|
||||
configureFlags = [ "--with-klibc" "--with-x86emu" ];
|
||||
|
||||
hardeningDisable = [ "stackprotector" ];
|
||||
|
||||
makeFlags = [
|
||||
"KDIR=${kernel.dev}/lib/modules/${kernel.modDirVersion}/source"
|
||||
"DESTDIR=$(out)"
|
||||
];
|
||||
|
||||
configurePhase = ''
|
||||
./configure $configureFlags
|
||||
'';
|
||||
|
||||
buildInputs = [ klibc ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "A daemon to run x86 code in an emulated environment";
|
||||
homepage = "https://github.com/mjanusz/v86d";
|
||||
license = licenses.gpl2;
|
||||
maintainers = with maintainers; [ codyopel ];
|
||||
platforms = [ "i686-linux" "x86_64-linux" ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue