@@ -1,34 +1,22 @@
1−a :
2−let
3− fetchurl = a.fetchurl;
1+{ stdenv, fetchurl }:
2+
3+let version = "1.0.2"; in
4+stdenv.mkDerivation rec {
5+ name = "suid-chroot-${version}";
46
5− version = a.lib.attrByPath ["version"] "1.0.1" a;
6− buildInputs = with a; [
7−
8− ];
9−in
10−rec {
117 src = fetchurl {
12− url = "http://myweb.tiscali.co.uk/scottrix/linux/download/suid-chroot-${version}.tar.bz2";
13− sha256 = "15gs09md4lyym47ipzffm1ws8jkg028x0cgwxxs9qkdqbl5zb777";
8+ sha256 = "1a9xqhck0ikn8kfjk338h9v1yjn113gd83q0c50k78xa68xrnxjx";
9+ url = "http://myweb.tiscali.co.uk/scottrix/linux/download/${name}.tar.bz2";
1410 };
1511
16− inherit buildInputs;
17− configureFlags = [];
18−
19− /* doConfigure should be removed if not needed */
20− phaseNames = ["replacePaths" "doMakeInstall"];
21−
22− installFlags = "PREFIX=$out";
12+ postPatch = ''
13+ substituteInPlace Makefile --replace /usr $out
14+ '';
2315
24− replacePaths = a.fullDepEntry (''
25− sed -e "s@/usr/@$out/@g" -i Makefile
26− '') ["minInit" "doUnpack"];
27−
28− name = "suid-chroot-" + version;
29− meta = {
16+ meta = with stdenv.lib; {
17+ inherit version;
3018 description = "Setuid-safe wrapper for chroot";
31− maintainers = [
32− ];
19+ license = with licenses; gpl2Plus;
20+ maintainers = with maintainers; [ nckx ];
3321 };
3422}