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
37
pkgs/applications/virtualization/xhyve/default.nix
Normal file
37
pkgs/applications/virtualization/xhyve/default.nix
Normal file
|
|
@ -0,0 +1,37 @@
|
|||
{ stdenv, lib, fetchFromGitHub, Hypervisor, vmnet, xpc, libobjc, zlib }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "xhyve";
|
||||
version = "20210203";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "machyve";
|
||||
repo = "xhyve";
|
||||
rev = "83516a009c692ea5d2993d1071e68d05d359b11e";
|
||||
sha256 = "1pjdg4ppy6qh3vr1ls5zyw3jzcvwny9wydnmfpadwij1hvns7lj3";
|
||||
};
|
||||
|
||||
buildInputs = [ Hypervisor vmnet xpc libobjc zlib ];
|
||||
|
||||
# Don't use git to determine version
|
||||
prePatch = ''
|
||||
substituteInPlace Makefile \
|
||||
--replace 'shell git describe --abbrev=6 --dirty --always --tags' "$version"
|
||||
'';
|
||||
|
||||
|
||||
makeFlags = [ "CFLAGS+=-Wno-shift-sign-overflow" ''CFLAGS+=-DVERSION=\"${version}\"'' ];
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out/bin
|
||||
cp build/xhyve $out/bin
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "Lightweight Virtualization on macOS Based on bhyve";
|
||||
homepage = "https://github.com/mist64/xhyve";
|
||||
maintainers = [ maintainers.lnl7 ];
|
||||
license = licenses.bsd2;
|
||||
platforms = platforms.darwin;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue