@@ -0,0 +1,29 @@
1+{ stdenv, fetchgit, talloc }:
2+
3+stdenv.mkDerivation rec {
4+ name = "proot-${version}";
5+ version = "4.0.3";
6+
7+ src = fetchgit {
8+ url = "git://github.com/cedric-vincent/proot.git";
9+ rev = "refs/tags/v${version}";
10+ sha256 = "95a52b2fa47b2891eb2c6b6b0e14d42f6d48f6fd5181e359b007831f1a046e84";
11+ };
12+
13+ buildInputs = [ talloc ];
14+
15+ preBuild = ''
16+ substituteInPlace GNUmakefile --replace "/usr/local" "$out"
17+ '';
18+
19+ sourceRoot = "git-export/src";
20+
21+ meta = with stdenv.lib; {
22+ homepage = http://proot.me;
23+ description = "User-space implementation of chroot, mount --bind and binfmt_misc";
24+ platforms = platforms.linux;
25+ license = licenses.gpl2;
26+ maintainers = [ maintainers.ianwookim ];
27+ };
28+}
29+