git.iko.soy/typeable/nixpkgs
on master help sign in
rc: init at 1.7.4
commit4c72c81e085774b348b9560ddcaeca6a5cc66bc1 authorRam Kromberg <ramkromberg@mail.com> dateWed 24 Aug 2016, 03:04 (10 years ago) parent4dc1823
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
@@ -3279,6 +3279,8 @@ in
32793279
32803280 rawdog = callPackage ../applications/networking/feedreaders/rawdog { };
32813281
3282+ rc = callPackage ../shells/rc { };
3283+
32823284 read-edid = callPackage ../os-specific/linux/read-edid { };
32833285
32843286 redir = callPackage ../tools/networking/redir { };