2021-01-11 08:54:33 +01:00
|
|
|
{ lib, stdenv, fetchurl }:
|
2015-04-22 22:11:31 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "suid-chroot";
|
2016-01-24 20:31:44 +01:00
|
|
|
version = "1.0.2";
|
2009-07-12 10:10:51 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
2015-04-22 22:11:31 +02:00
|
|
|
sha256 = "1a9xqhck0ikn8kfjk338h9v1yjn113gd83q0c50k78xa68xrnxjx";
|
2019-08-15 14:41:18 +02:00
|
|
|
url = "http://myweb.tiscali.co.uk/scottrix/linux/download/${pname}-${version}.tar.bz2";
|
2009-07-12 10:10:51 +02:00
|
|
|
};
|
|
|
|
|
2015-04-22 22:11:31 +02:00
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace Makefile --replace /usr $out
|
2017-06-28 16:58:36 +02:00
|
|
|
sed -i -e '/chmod u+s/d' Makefile
|
2015-04-22 22:11:31 +02:00
|
|
|
'';
|
2009-07-12 10:10:51 +02:00
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2009-07-12 10:10:51 +02:00
|
|
|
description = "Setuid-safe wrapper for chroot";
|
2015-05-28 19:20:29 +02:00
|
|
|
license = licenses.gpl2Plus;
|
2016-08-02 19:50:55 +02:00
|
|
|
platforms = with platforms; unix;
|
2009-07-12 10:10:51 +02:00
|
|
|
};
|
|
|
|
}
|