diff options
Diffstat (limited to 'pkgs/tools/system/suid-chroot/default.nix')
-rw-r--r-- | pkgs/tools/system/suid-chroot/default.nix | 40 |
1 files changed, 14 insertions, 26 deletions
diff --git a/pkgs/tools/system/suid-chroot/default.nix b/pkgs/tools/system/suid-chroot/default.nix index 3b19c711410..62f7280a54a 100644 --- a/pkgs/tools/system/suid-chroot/default.nix +++ b/pkgs/tools/system/suid-chroot/default.nix @@ -1,34 +1,22 @@ -a : -let - fetchurl = a.fetchurl; +{ stdenv, fetchurl }: + +let version = "1.0.2"; in +stdenv.mkDerivation rec { + name = "suid-chroot-${version}"; - 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"; + sha256 = "1a9xqhck0ikn8kfjk338h9v1yjn113gd83q0c50k78xa68xrnxjx"; + url = "http://myweb.tiscali.co.uk/scottrix/linux/download/${name}.tar.bz2"; }; - inherit buildInputs; - configureFlags = []; - - /* doConfigure should be removed if not needed */ - phaseNames = ["replacePaths" "doMakeInstall"]; - - installFlags = "PREFIX=$out"; + postPatch = '' + substituteInPlace Makefile --replace /usr $out + ''; - replacePaths = a.fullDepEntry ('' - sed -e "s@/usr/@$out/@g" -i Makefile - '') ["minInit" "doUnpack"]; - - name = "suid-chroot-" + version; - meta = { + meta = with stdenv.lib; { + inherit version; description = "Setuid-safe wrapper for chroot"; - maintainers = [ - ]; + license = with licenses; gpl2Plus; + maintainers = with maintainers; [ nckx ]; }; } |