git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #30495 from veprbl/patch-2

proot: static by default, bump to 2017-10-15

commit4333b94ae58751123780fcc239fdf7599b7121dc authorTobias Geerinckx-Rice <nckx@users.noreply.github.com> dateSun 22 Oct 2017, 19:33 (9 years ago) parent917bd0b10cc95e
1 file changed+22−12
pkgs/tools/system/proot/default.nix+22−12
pkgs/tools/system/proot/default.nix+22−12
@@ -1,14 +1,13 @@
11{ stdenv, fetchFromGitHub, fetchpatch
22, talloc, docutils
3−, enableStatic ? false }:
3+, enableStatic ? true }:
44
5−stdenv.mkDerivation rec {
5+({ version, rev, sha256, patches }: stdenv.mkDerivation {
66 name = "proot-${version}";
7− version = "5.1.0";
7+ inherit version;
88
99 src = fetchFromGitHub {
10− sha256 = "0azsqis99gxldmbcg43girch85ysg4hwzf0h1b44bmapnsm89fbz";
11− rev = "v${version}";
10+ inherit rev sha256;
1211 repo = "proot";
1312 owner = "cedric-vincent";
1413 };
@@ -18,12 +17,7 @@ stdenv.mkDerivation rec {
1817
1918 enableParallelBuilding = true;
2019
21− patches = [
22− (fetchpatch { # debian patch for aarch64 build
23− sha256 = "18milpzjkbfy5ab789ia3m4pyjyr9mfzbw6kbjhkj4vx9jc39svv";
24− url = "https://sources.debian.net/data/main/p/proot/5.1.0-1.2/debian/patches/arm64.patch";
25− })
26− ];
20+ inherit patches;
2721
2822 preBuild = stdenv.lib.optionalString enableStatic ''
2923 export LDFLAGS="-static"
@@ -48,4 +42,20 @@ stdenv.mkDerivation rec {
4842 license = licenses.gpl2;
4943 maintainers = with maintainers; [ ianwookim nckx makefu ];
5044 };
51−}
45+})
46+(if stdenv.isAarch64 then rec {
47+ version = "5.1.0";
48+ sha256 = "0azsqis99gxldmbcg43girch85ysg4hwzf0h1b44bmapnsm89fbz";
49+ rev = "v${version}";
50+ patches = [
51+ (fetchpatch { # debian patch for aarch64 build
52+ sha256 = "18milpzjkbfy5ab789ia3m4pyjyr9mfzbw6kbjhkj4vx9jc39svv";
53+ url = "https://sources.debian.net/data/main/p/proot/5.1.0-1.2/debian/patches/arm64.patch";
54+ })
55+ ];
56+} else {
57+ version = "5.1.0.20171015";
58+ sha256 = "0jam87msh5jx8vpb19n6xwxw1xlig5amdcqif7gn2rc8nhswpxif";
59+ rev = "0bf2ee17daafeeadfed079cec97fe1ac781e696a";
60+ patches = [];
61+})