Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{
2 lib,
3 stdenv,
4 fetchurl,
5 libxcrypt,
6 ncurses,
7 buildPackages,
8}:
9
10stdenv.mkDerivation (finalAttrs: {
11 pname = "tcsh";
12 version = "6.24.16";
13
14 src = fetchurl {
15 url = "mirror://tcsh/tcsh-${finalAttrs.version}.tar.gz";
16 hash = "sha256-QgjPRjD7ZNkdgZh/hU+VcKWg6KABqSgn3vN9Dtjzc2Q=";
17 };
18
19 strictDeps = true;
20
21 depsBuildBuild = [
22 buildPackages.stdenv.cc
23 ];
24
25 buildInputs = [
26 libxcrypt
27 ncurses
28 ];
29
30 passthru.shellPath = "/bin/tcsh";
31
32 meta = {
33 homepage = "https://www.tcsh.org/";
34 description = "Enhanced version of the Berkeley UNIX C shell (csh)";
35 mainProgram = "tcsh";
36 longDescription = ''
37 tcsh is an enhanced but completely compatible version of the Berkeley UNIX
38 C shell, csh. It is a command language interpreter usable both as an
39 interactive login shell and a shell script command processor.
40
41 It includes:
42 - command-line editor
43 - programmable word completion
44 - spelling correction
45 - history mechanism
46 - job control
47 '';
48 license = lib.licenses.bsd2;
49 maintainers = with lib.maintainers; [ suominen ];
50 platforms = lib.platforms.unix;
51 };
52})