git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #17947 from RamKromberg/init/rc

rc: init at 1.7.4

commitc30792ed43ceb9f82448bfdfbbfa65c8b5910388 authorJoachim F <joachifm@users.noreply.github.com> dateFri 26 Aug 2016, 18:34 (10 years ago) parentfee9b344c72c81
2 files changed+44
pkgs/shells/rc/default.nix+42 pkgs/top-level/all-packages.nix+2
pkgs/shells/rc/default.nixnew file+42
@@ -0,0 +1,42 @@
1+{ stdenv, fetchurl, autoreconfHook
2+, ncurses #acinclude.m4 wants headers for tgetent().
3+, historySupport ? false
4+, readline ? null
5+}:
6+
7+stdenv.mkDerivation rec {
8+ name = "rc-${version}";
9+ version = "1.7.4";
10+
11+ src = fetchurl {
12+ url = "http://static.tobold.org/rc/rc-${version}.tar.gz";
13+ sha256 = "1n5zz6d6z4z6s3fwa0pscqqawy561k4xfnmi91i626hcvls67ljy";
14+ };
15+
16+ nativeBuildInputs = [ autoreconfHook ];
17+ buildInputs = [ ncurses ]
18+ ++ stdenv.lib.optionals (readline != null) [ readline ];
19+
20+ configureFlags = [
21+ "--enable-def-interp=${stdenv.shell}" #183
22+ ] ++ stdenv.lib.optionals historySupport [ "--with-history" ]
23+ ++ stdenv.lib.optionals (readline != null) [ "--with-edit=readline" ];
24+
25+ prePatch = ''
26+ substituteInPlace configure.ac \
27+ --replace "date -I" "echo 2015-05-13" #reproducible-build
28+ '';
29+
30+ passthru = {
31+ shellPath = "/bin/rc";
32+ };
33+
34+ meta = with stdenv.lib; {
35+ description = "The Plan 9 shell";
36+ longDescription = "Byron Rakitzis' UNIX reimplementation of Tom Duff's Plan 9 shell.";
37+ homepage = http://tobold.org/article/rc;
38+ license = with licenses; zlib;
39+ maintainers = with maintainers; [ ramkromberg ];
40+ platforms = with platforms; all;
41+ };
42+}
pkgs/top-level/all-packages.nix+2
@@ -3281,6 +3281,8 @@ in
32813281
32823282 rawdog = callPackage ../applications/networking/feedreaders/rawdog { };
32833283
3284+ rc = callPackage ../shells/rc { };
3285+
32843286 read-edid = callPackage ../os-specific/linux/read-edid { };
32853287
32863288 redir = callPackage ../tools/networking/redir { };