mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 14:54:29 +01:00
proot: fix aarch64 build
This commit is contained in:
parent
9824ca6975
commit
05d2603173
1 changed files with 9 additions and 1 deletions
|
@ -1,4 +1,5 @@
|
|||
{ stdenv, fetchFromGitHub, talloc, docutils
|
||||
{ stdenv, fetchFromGitHub, fetchpatch
|
||||
, talloc, docutils
|
||||
, enableStatic ? false }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
|
@ -17,6 +18,13 @@ stdenv.mkDerivation rec {
|
|||
|
||||
enableParallelBuilding = true;
|
||||
|
||||
patches = [
|
||||
(fetchpatch { # debian patch for aarch64 build
|
||||
sha256 = "18milpzjkbfy5ab789ia3m4pyjyr9mfzbw6kbjhkj4vx9jc39svv";
|
||||
url = "https://sources.debian.net/data/main/p/proot/5.1.0-1.2/debian/patches/arm64.patch";
|
||||
})
|
||||
];
|
||||
|
||||
preBuild = stdenv.lib.optionalString enableStatic ''
|
||||
export LDFLAGS="-static"
|
||||
'';
|
||||
|
|
Loading…
Reference in a new issue