base16-schemes: unstable-2024-06-21 -> unstable-2024-11-12
[NixPkgs.git] / pkgs / by-name / rc / rc-9front / package.nix
blobcd6e18064b3650312e46f1a5ec4516839e009753
1 { lib
2 , stdenv
3 , fetchFrom9Front
4 , unstableGitUpdater
5 , byacc
6 , installShellFiles
7 }:
9 stdenv.mkDerivation {
10   pname = "rc-9front";
11   version = "0-unstable-2022-11-01";
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   };
21   strictDeps = true;
22   nativeBuildInputs = [ byacc installShellFiles ];
23   enableParallelBuilding = true;
24   patches = [ ./path.patch ];
25   makeFlags = [ "PREFIX=$(out)" ];
27   installPhase = ''
28     runHook preInstall
30     install -Dm755 -t $out/bin/ rc
31     installManPage rc.1
32     mkdir -p $out/lib
33     install -m644 rcmain.unix $out/lib/rcmain
35     runHook postInstall
36   '';
38   passthru = {
39     shellPath = "/bin/rc";
40     updateScript = unstableGitUpdater { shallowClone = false; };
41   };
43   meta = with lib; {
44     description = "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   };