mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-24 14:41:17 +00:00
b7135f496e
More of a conversion excercise than anything, but here you go.
23 lines
553 B
Nix
23 lines
553 B
Nix
{ stdenv, fetchurl }:
|
|
|
|
let version = "1.0.2"; in
|
|
stdenv.mkDerivation rec {
|
|
name = "suid-chroot-${version}";
|
|
|
|
src = fetchurl {
|
|
sha256 = "1a9xqhck0ikn8kfjk338h9v1yjn113gd83q0c50k78xa68xrnxjx";
|
|
url = "http://myweb.tiscali.co.uk/scottrix/linux/download/${name}.tar.bz2";
|
|
};
|
|
|
|
postPatch = ''
|
|
substituteInPlace Makefile --replace /usr $out
|
|
'';
|
|
|
|
meta = with stdenv.lib; {
|
|
inherit version;
|
|
description = "Setuid-safe wrapper for chroot";
|
|
license = with licenses; gpl2Plus;
|
|
maintainers = with maintainers; [ nckx ];
|
|
};
|
|
}
|