2015-04-22 23:11:31 +03:00
|
|
|
{ stdenv, fetchurl }:
|
|
|
|
|
|
|
|
let version = "1.0.2"; in
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "suid-chroot-${version}";
|
2009-07-12 12:10:51 +04:00
|
|
|
|
|
|
|
src = fetchurl {
|
2015-04-22 23:11:31 +03:00
|
|
|
sha256 = "1a9xqhck0ikn8kfjk338h9v1yjn113gd83q0c50k78xa68xrnxjx";
|
|
|
|
url = "http://myweb.tiscali.co.uk/scottrix/linux/download/${name}.tar.bz2";
|
2009-07-12 12:10:51 +04:00
|
|
|
};
|
|
|
|
|
2015-04-22 23:11:31 +03:00
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace Makefile --replace /usr $out
|
|
|
|
'';
|
2009-07-12 12:10:51 +04:00
|
|
|
|
2015-04-22 23:11:31 +03:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
inherit version;
|
2009-07-12 12:10:51 +04:00
|
|
|
description = "Setuid-safe wrapper for chroot";
|
2015-05-28 20:20:29 +03:00
|
|
|
license = licenses.gpl2Plus;
|
2015-04-22 23:11:31 +03:00
|
|
|
maintainers = with maintainers; [ nckx ];
|
2009-07-12 12:10:51 +04:00
|
|
|
};
|
|
|
|
}
|