lol
1{ lib
2, stdenv
3, fetchFrom9Front
4, unstableGitUpdater
5, byacc
6, installShellFiles
7}:
8
9stdenv.mkDerivation {
10 pname = "rc-9front";
11 version = "0-unstable-2022-11-01";
12
13 src = fetchFrom9Front {
14 domain = "shithub.us";
15 owner = "cinap_lenrek";
16 repo = "rc";
17 rev = "69041639483e16392e3013491fcb382efd2b9374";
18 hash = "sha256-xc+EfC4bc9ZA97jCQ6CGCzeLGf+Hx3/syl090/x4ew4=";
19 };
20
21 strictDeps = true;
22 nativeBuildInputs = [ byacc installShellFiles ];
23 enableParallelBuilding = true;
24 patches = [ ./path.patch ];
25 makeFlags = [ "PREFIX=$(out)" ];
26
27 installPhase = ''
28 runHook preInstall
29
30 install -Dm755 -t $out/bin/ rc
31 installManPage rc.1
32 mkdir -p $out/lib
33 install -m644 rcmain.unix $out/lib/rcmain
34
35 runHook postInstall
36 '';
37
38 passthru = {
39 shellPath = "/bin/rc";
40 updateScript = unstableGitUpdater { shallowClone = false; };
41 };
42
43 meta = with lib; {
44 description = "The 9front shell";
45 longDescription = "unix port of 9front rc";
46 homepage = "http://shithub.us/cinap_lenrek/rc/HEAD/info.html";
47 license = licenses.mit;
48 maintainers = with maintainers; [ moody ];
49 mainProgram = "rc";
50 platforms = platforms.all;
51 };
52}