depot/third_party/nixpkgs/pkgs/shells/rush/default.nix
Default email ca5ab3a501 Project import generated by Copybara.
GitOrigin-RevId: 4a01ca36d6bfc133bc617e661916a81327c9bbc8
2022-07-14 08:49:19 -04:00

50 lines
1.4 KiB
Nix

{ fetchurl, lib, stdenv, bash, perl }:
stdenv.mkDerivation rec {
pname = "rush";
version = "2.2";
src = fetchurl {
url = "mirror://gnu/${pname}/${pname}-${version}.tar.gz";
sha256 = "sha256-ld5TdpF7siprQCbhE4oxYhH40x3QZ5NCQlD3zRaNmM0=";
};
strictDeps = true;
buildInputs = [ bash ];
postInstall = ''
substituteInPlace $out/bin/rush-po \
--replace "exec perl" "exec ${lib.getExe perl}"
'';
doCheck = true;
meta = {
broken = stdenv.isDarwin;
description = "Restricted User Shell";
longDescription =
'' GNU Rush is a Restricted User Shell, designed for sites
providing limited remote access to their resources, such as
svn or git repositories, scp, or the like. Using a
sophisticated configuration file, Rush gives you complete
control over the command lines that users execute, as well as
over the usage of system resources, such as virtual memory,
CPU time, etc.
In particular, it allows remote programs to be run in a chrooted
environment, which is important with such programs as
sftp-server or scp, that lack this ability.
'';
homepage = "https://www.gnu.org/software/rush/";
license = lib.licenses.gpl3Plus;
maintainers = [ ];
platforms = lib.platforms.all;
};
passthru = {
shellPath = "/bin/rush";
};
}