2021-01-15 22:18:51 +00:00
|
|
|
{ lib, stdenv, fetchurl }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "suid-chroot";
|
|
|
|
version = "1.0.2";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
sha256 = "1a9xqhck0ikn8kfjk338h9v1yjn113gd83q0c50k78xa68xrnxjx";
|
|
|
|
url = "http://myweb.tiscali.co.uk/scottrix/linux/download/${pname}-${version}.tar.bz2";
|
|
|
|
};
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace Makefile --replace /usr $out
|
|
|
|
sed -i -e '/chmod u+s/d' Makefile
|
|
|
|
'';
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Setuid-safe wrapper for chroot";
|
|
|
|
license = licenses.gpl2Plus;
|
|
|
|
platforms = with platforms; unix;
|
|
|
|
};
|
|
|
|
}
|