proot: fix aarch64 build

This commit is contained in:
makefu 2017-10-01 15:24:18 +02:00
parent 9824ca6975
commit 05d2603173
No known key found for this signature in database
GPG key ID: 36F7711F3FC0F225

View file

@ -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"
'';