2014-11-26 19:42:33 +01:00
|
|
|
{ stdenv, fetchgit, talloc, enableStatic ? false }:
|
2014-10-07 02:37:23 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "proot-${version}";
|
|
|
|
version = "4.0.3";
|
|
|
|
|
|
|
|
src = fetchgit {
|
|
|
|
url = "git://github.com/cedric-vincent/proot.git";
|
|
|
|
rev = "refs/tags/v${version}";
|
|
|
|
sha256 = "95a52b2fa47b2891eb2c6b6b0e14d42f6d48f6fd5181e359b007831f1a046e84";
|
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ talloc ];
|
|
|
|
|
2014-11-26 19:42:33 +01:00
|
|
|
preBuild = stdenv.lib.optionalString enableStatic ''
|
|
|
|
export LDFLAGS="-static -L${talloc}/lib"
|
|
|
|
'' + ''
|
2014-10-07 02:37:23 +02:00
|
|
|
substituteInPlace GNUmakefile --replace "/usr/local" "$out"
|
|
|
|
'';
|
|
|
|
|
2015-01-01 15:56:57 +01:00
|
|
|
sourceRoot = "proot/src";
|
2014-10-07 02:37:23 +02:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
homepage = http://proot.me;
|
|
|
|
description = "User-space implementation of chroot, mount --bind and binfmt_misc";
|
|
|
|
platforms = platforms.linux;
|
|
|
|
license = licenses.gpl2;
|
2014-10-07 14:23:42 +02:00
|
|
|
maintainers = [ maintainers.ianwookim ];
|
2014-10-07 02:37:23 +02:00
|
|
|
};
|
|
|
|
}
|
|
|
|
|