1 { fetchurl, lib, stdenv, bash, perl }:
3 stdenv.mkDerivation rec {
8 url = "mirror://gnu/${pname}/${pname}-${version}.tar.gz";
9 sha256 = "sha256-Jm80iJq2pwO/CJCItSN8gUo5ThxRQsG0Z5TYVtWSEts=";
13 buildInputs = [ bash ];
16 substituteInPlace $out/bin/rush-po \
17 --replace "exec perl" "exec ${lib.getExe perl}"
23 broken = stdenv.hostPlatform.isDarwin;
24 description = "Restricted User Shell";
27 GNU Rush is a Restricted User Shell, designed for sites
28 providing limited remote access to their resources, such as
29 svn or git repositories, scp, or the like. Using a
30 sophisticated configuration file, Rush gives you complete
31 control over the command lines that users execute, as well as
32 over the usage of system resources, such as virtual memory,
35 In particular, it allows remote programs to be run in a chrooted
36 environment, which is important with such programs as
37 sftp-server or scp, that lack this ability.
40 homepage = "https://www.gnu.org/software/rush/";
41 license = lib.licenses.gpl3Plus;
44 platforms = lib.platforms.all;
48 shellPath = "/bin/rush";