1{ fetchurl, stdenv }:
2
3stdenv.mkDerivation rec {
4 name = "rush-1.8";
5
6 src = fetchurl {
7 url = "mirror://gnu/rush/${name}.tar.gz";
8 sha256 = "1vxdb81ify4xcyygh86250pi50krb16dkj42i5ii4ns3araiwckz";
9 };
10
11 patches = [ ./fix-format-security-error.patch
12 ./intprops.patch
13 ];
14
15 doCheck = true;
16
17 meta = {
18 description = "Restricted User Shell";
19
20 longDescription =
21 '' GNU Rush is a Restricted User Shell, designed for sites
22 providing limited remote access to their resources, such as
23 svn or git repositories, scp, or the like. Using a
24 sophisticated configuration file, Rush gives you complete
25 control over the command lines that users execute, as well as
26 over the usage of system resources, such as virtual memory,
27 CPU time, etc.
28
29 In particular, it allows remote programs to be run in a chrooted
30 environment, which is important with such programs as
31 sftp-server or scp, that lack this ability.
32 '';
33
34 homepage = https://www.gnu.org/software/rush/;
35 license = stdenv.lib.licenses.gpl3Plus;
36
37 maintainers = [ stdenv.lib.maintainers.bjg ];
38 platforms = stdenv.lib.platforms.all;
39 };
40
41 passthru = {
42 shellPath = "/bin/rush";
43 };
44}