about summary refs log tree commit diff
path: root/pkgs/tools/system/suid-chroot/default.nix
blob: e12b0d828619a8b8e646294f2bacc4a182c5cb91 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
{ lib, stdenv, fetchurl }:

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
  '';

  meta = with lib; {
    description = "Setuid-safe wrapper for chroot";
    license = licenses.gpl2Plus;
    platforms = with platforms; unix;
  };
}