mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-01 11:22:58 +00:00
68927918d0
The indentation stripping semantics of strings are fairly bad and have a few gotchas where the resulting string has not the intended indentation. This commit fixes most if not all such instances in Nixpkgs. I tried to strive a balance between keeping the diff small and reformatting/refactoring the code to look better. In general, reformatting should be left to Nixfmt. Note that this causes a lot of rebuilds by design. All changes need to be thoroughly vetted and reviewed for correctness. There is no automatic way to prove correctness. List of files to fix generated by running https://gerrit.lix.systems/c/lix/+/2092 on Nixpkgs and looking at the warnings.
51 lines
1.4 KiB
Nix
51 lines
1.4 KiB
Nix
{ fetchurl, lib, stdenv, bash, perl }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "rush";
|
|
version = "2.3";
|
|
|
|
src = fetchurl {
|
|
url = "mirror://gnu/${pname}/${pname}-${version}.tar.gz";
|
|
sha256 = "sha256-57gBYfZsKdK1moXBC52KgxKv/MIeQK6tDu+fznXLZ+Y=";
|
|
};
|
|
|
|
strictDeps = true;
|
|
buildInputs = [ bash ];
|
|
|
|
postInstall = ''
|
|
substituteInPlace $out/bin/rush-po \
|
|
--replace "exec perl" "exec ${lib.getExe perl}"
|
|
'';
|
|
|
|
doCheck = true;
|
|
|
|
meta = {
|
|
broken = stdenv.hostPlatform.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";
|
|
};
|
|
}
|