From 609bea973a29886be7492208d536434365592919 Mon Sep 17 00:00:00 2001 From: Ian-Woo Kim Date: Tue, 7 Oct 2014 02:37:23 +0200 Subject: proot: User-space implementation of chroot, mount --bind and binfmt_misc --- pkgs/tools/system/proot/default.nix | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 pkgs/tools/system/proot/default.nix (limited to 'pkgs/tools') diff --git a/pkgs/tools/system/proot/default.nix b/pkgs/tools/system/proot/default.nix new file mode 100644 index 00000000000..19f88a0e5b2 --- /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 ]; + }; +} + -- cgit 1.4.1