summary refs log tree commit diff
path: root/pkgs/tools/system/suid-chroot/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/tools/system/suid-chroot/default.nix')
-rw-r--r--pkgs/tools/system/suid-chroot/default.nix34
1 files changed, 34 insertions, 0 deletions
diff --git a/pkgs/tools/system/suid-chroot/default.nix b/pkgs/tools/system/suid-chroot/default.nix
new file mode 100644
index 00000000000..3b19c711410
--- /dev/null
+++ b/pkgs/tools/system/suid-chroot/default.nix
@@ -0,0 +1,34 @@
+a :  
+let 
+  fetchurl = a.fetchurl;
+
+  version = a.lib.attrByPath ["version"] "1.0.1" a; 
+  buildInputs = with a; [
+    
+  ];
+in
+rec {
+  src = fetchurl {
+    url = "http://myweb.tiscali.co.uk/scottrix/linux/download/suid-chroot-${version}.tar.bz2";
+    sha256 = "15gs09md4lyym47ipzffm1ws8jkg028x0cgwxxs9qkdqbl5zb777";
+  };
+
+  inherit buildInputs;
+  configureFlags = [];
+
+  /* doConfigure should be removed if not needed */
+  phaseNames = ["replacePaths" "doMakeInstall"];
+
+  installFlags = "PREFIX=$out";
+
+  replacePaths = a.fullDepEntry (''
+    sed -e "s@/usr/@$out/@g" -i Makefile
+  '') ["minInit" "doUnpack"];
+      
+  name = "suid-chroot-" + version;
+  meta = {
+    description = "Setuid-safe wrapper for chroot";
+    maintainers = [
+    ];
+  };
+}