nixpkgs-suyu/pkgs/tools/system/suid-chroot/default.nix
volth 46420bbaa3 treewide: name -> pname (easy cases) (#66585)
treewide replacement of

stdenv.mkDerivation rec {
  name = "*-${version}";
  version = "*";

to pname
2019-08-15 13:41:18 +01:00

22 lines
553 B
Nix

{ 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 stdenv.lib; {
description = "Setuid-safe wrapper for chroot";
license = licenses.gpl2Plus;
platforms = with platforms; unix;
};
}