diff options
author | Tobias Geerinckx-Rice <tobias.geerinckx.rice@gmail.com> | 2015-04-22 22:11:31 +0200 |
---|---|---|
committer | Tobias Geerinckx-Rice <tobias.geerinckx.rice@gmail.com> | 2015-04-23 01:52:18 +0200 |
commit | b7135f496ecca7a03d59d8d63fa51943c703d0f7 (patch) | |
tree | 1464fa7e8d80d20b31111a6438a896474092ad6b /pkgs/tools/system/suid-chroot/default.nix | |
parent | 1adb48263892fdb21b160b5d0be1ed8997c341d4 (diff) | |
download | nixpkgs-b7135f496ecca7a03d59d8d63fa51943c703d0f7.tar nixpkgs-b7135f496ecca7a03d59d8d63fa51943c703d0f7.tar.gz nixpkgs-b7135f496ecca7a03d59d8d63fa51943c703d0f7.tar.bz2 nixpkgs-b7135f496ecca7a03d59d8d63fa51943c703d0f7.tar.lz nixpkgs-b7135f496ecca7a03d59d8d63fa51943c703d0f7.tar.xz nixpkgs-b7135f496ecca7a03d59d8d63fa51943c703d0f7.tar.zst nixpkgs-b7135f496ecca7a03d59d8d63fa51943c703d0f7.zip |
suid-chroot 1.0.1 -> 1.0.2 (and refactor)
More of a conversion excercise than anything, but here you go.
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 ]; }; } |