tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
0
fork
atom
lol
0
fork
atom
overview
issues
pulls
pipelines
rc: init at 1.7.4
Ram Kromberg
9 years ago
4c72c81e
4dc1823e
+44
2 changed files
expand all
collapse all
unified
split
pkgs
shells
rc
default.nix
top-level
all-packages.nix
+42
pkgs/shells/rc/default.nix
reviewed
···
1
1
+
{ stdenv, fetchurl, autoreconfHook
2
2
+
, ncurses #acinclude.m4 wants headers for tgetent().
3
3
+
, historySupport ? false
4
4
+
, readline ? null
5
5
+
}:
6
6
+
7
7
+
stdenv.mkDerivation rec {
8
8
+
name = "rc-${version}";
9
9
+
version = "1.7.4";
10
10
+
11
11
+
src = fetchurl {
12
12
+
url = "http://static.tobold.org/rc/rc-${version}.tar.gz";
13
13
+
sha256 = "1n5zz6d6z4z6s3fwa0pscqqawy561k4xfnmi91i626hcvls67ljy";
14
14
+
};
15
15
+
16
16
+
nativeBuildInputs = [ autoreconfHook ];
17
17
+
buildInputs = [ ncurses ]
18
18
+
++ stdenv.lib.optionals (readline != null) [ readline ];
19
19
+
20
20
+
configureFlags = [
21
21
+
"--enable-def-interp=${stdenv.shell}" #183
22
22
+
] ++ stdenv.lib.optionals historySupport [ "--with-history" ]
23
23
+
++ stdenv.lib.optionals (readline != null) [ "--with-edit=readline" ];
24
24
+
25
25
+
prePatch = ''
26
26
+
substituteInPlace configure.ac \
27
27
+
--replace "date -I" "echo 2015-05-13" #reproducible-build
28
28
+
'';
29
29
+
30
30
+
passthru = {
31
31
+
shellPath = "/bin/rc";
32
32
+
};
33
33
+
34
34
+
meta = with stdenv.lib; {
35
35
+
description = "The Plan 9 shell";
36
36
+
longDescription = "Byron Rakitzis' UNIX reimplementation of Tom Duff's Plan 9 shell.";
37
37
+
homepage = http://tobold.org/article/rc;
38
38
+
license = with licenses; zlib;
39
39
+
maintainers = with maintainers; [ ramkromberg ];
40
40
+
platforms = with platforms; all;
41
41
+
};
42
42
+
}
+2
pkgs/top-level/all-packages.nix
reviewed
···
3279
3279
3280
3280
rawdog = callPackage ../applications/networking/feedreaders/rawdog { };
3281
3281
3282
3282
+
rc = callPackage ../shells/rc { };
3283
3283
+
3282
3284
read-edid = callPackage ../os-specific/linux/read-edid { };
3283
3285
3284
3286
redir = callPackage ../tools/networking/redir { };