diff options
author | Ian-Woo Kim <ianwookim@gmail.com> | 2014-10-07 02:37:23 +0200 |
---|---|---|
committer | Ian-Woo Kim <ianwookim@gmail.com> | 2014-10-07 02:37:23 +0200 |
commit | 609bea973a29886be7492208d536434365592919 (patch) | |
tree | fa8901c28ca2e1e2e118ffa14d0006b1ca7e7f4d /pkgs | |
parent | 95b12bf0bedd1cd241ea2468464286dcc2a209bb (diff) | |
download | nixlib-609bea973a29886be7492208d536434365592919.tar nixlib-609bea973a29886be7492208d536434365592919.tar.gz nixlib-609bea973a29886be7492208d536434365592919.tar.bz2 nixlib-609bea973a29886be7492208d536434365592919.tar.lz nixlib-609bea973a29886be7492208d536434365592919.tar.xz nixlib-609bea973a29886be7492208d536434365592919.tar.zst nixlib-609bea973a29886be7492208d536434365592919.zip |
proot: User-space implementation of chroot, mount --bind and binfmt_misc
Diffstat (limited to 'pkgs')
-rw-r--r-- | pkgs/tools/system/proot/default.nix | 33 | ||||
-rw-r--r-- | pkgs/top-level/all-packages.nix | 2 |
2 files changed, 35 insertions, 0 deletions
diff --git a/pkgs/tools/system/proot/default.nix b/pkgs/tools/system/proot/default.nix new file mode 100644 index 000000000000..19f88a0e5b28 --- /dev/null +++ b/pkgs/tools/system/proot/default.nix @@ -0,0 +1,33 @@ +{ stdenv, fetchgit, talloc }: + +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 ]; + + preBuild = '' + substituteInPlace GNUmakefile --replace "/usr/local" "$out" + ''; + + phases = [ "unpackPhase" "buildPhase" "installPhase" ]; + + + + sourceRoot = "git-export/src"; + + 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; + maintainers = with self.stdenv.lib.maintainers; [ ianwookim ]; + }; +} + diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 81f0106d04be..8bdcf575cda6 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -2024,6 +2024,8 @@ let projectm = callPackage ../applications/audio/projectm { }; + proot = callPackage ../tools/system/proot { }; + proxychains = callPackage ../tools/networking/proxychains { }; proxytunnel = callPackage ../tools/misc/proxytunnel { }; |