1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-19 04:02:10 +00:00
nixpkgs/pkgs/shells/rush/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

50 lines
1.3 KiB
Nix
Raw Normal View History

2022-05-06 19:39:28 +01:00
{ fetchurl, lib, stdenv, bash, perl }:
stdenv.mkDerivation rec {
pname = "rush";
2022-02-22 23:42:15 +00:00
version = "2.2";
src = fetchurl {
url = "mirror://gnu/${pname}/${pname}-${version}.tar.gz";
2022-02-22 23:42:15 +00:00
sha256 = "sha256-ld5TdpF7siprQCbhE4oxYhH40x3QZ5NCQlD3zRaNmM0=";
};
2022-05-06 19:39:28 +01:00
strictDeps = true;
buildInputs = [ bash ];
postInstall = ''
substituteInPlace $out/bin/rush-po \
--replace "exec perl" "exec ${lib.getExe perl}"
'';
doCheck = true;
meta = {
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/";
2021-01-15 06:28:56 +00:00
license = lib.licenses.gpl3Plus;
2021-01-15 06:28:56 +00:00
maintainers = [ lib.maintainers.bjg ];
platforms = lib.platforms.all;
};
2016-05-14 14:03:13 +01:00
passthru = {
shellPath = "/bin/rush";
};
}