Unbork journals audit logs and introduce audit option (#379629)
[NixPkgs.git] / pkgs / by-name / ru / rush / package.nix
blob0c4bea374c00ac6d68f67c112c3337b447721290
1 { fetchurl, lib, stdenv, bash, perl }:
3 stdenv.mkDerivation rec {
4   pname = "rush";
5   version = "2.4";
7   src = fetchurl {
8     url = "mirror://gnu/${pname}/${pname}-${version}.tar.gz";
9     sha256 = "sha256-Jm80iJq2pwO/CJCItSN8gUo5ThxRQsG0Z5TYVtWSEts=";
10   };
12   strictDeps = true;
13   buildInputs = [ bash ];
15   # Make sure that Rush looks for rush.rc in a directory that users can
16   # modify easily.
17   configureFlags = [ "--sysconfdir=/etc" ];
18   # Prevent “make install” from trying to copy something to
19   # /etc/rush.rc.
20   installFlags = [ "sysconfdir=$(out)/etc" ];
21   postInstall = ''
22     substituteInPlace $out/bin/rush-po \
23       --replace "exec perl" "exec ${lib.getExe perl}"
24   '';
26   doCheck = true;
28   meta = {
29     broken = stdenv.hostPlatform.isDarwin;
30     description = "Restricted User Shell";
32     longDescription = ''
33          GNU Rush is a Restricted User Shell, designed for sites
34          providing limited remote access to their resources, such as
35          svn or git repositories, scp, or the like.  Using a
36          sophisticated configuration file, Rush gives you complete
37          control over the command lines that users execute, as well as
38          over the usage of system resources, such as virtual memory,
39          CPU time, etc.
41          In particular, it allows remote programs to be run in a chrooted
42          environment, which is important with such programs as
43          sftp-server or scp, that lack this ability.
44       '';
46     homepage = "https://www.gnu.org/software/rush/";
47     license = lib.licenses.gpl3Plus;
49     maintainers = [ ];
50     platforms = lib.platforms.all;
51   };
53   passthru = {
54     shellPath = "/bin/rush";
55   };