nixpkgs/pkgs/shells/rc-9front/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

53 lines
1.2 KiB
Nix
Raw Normal View History

2023-07-09 19:05:04 +00:00
{ lib
2023-06-28 00:23:10 +00:00
, stdenv
2023-07-17 03:50:24 +00:00
, fetchFrom9Front
, unstableGitUpdater
2023-06-28 00:23:10 +00:00
, byacc
, installShellFiles
}:
2023-07-09 19:05:04 +00:00
stdenv.mkDerivation {
2023-06-28 00:23:10 +00:00
pname = "rc-9front";
version = "unstable-2022-11-01";
2023-07-17 03:50:24 +00:00
src = fetchFrom9Front {
domain = "shithub.us";
owner = "cinap_lenrek";
repo = "rc";
2023-06-28 00:23:10 +00:00
rev = "69041639483e16392e3013491fcb382efd2b9374";
hash = "sha256-xc+EfC4bc9ZA97jCQ6CGCzeLGf+Hx3/syl090/x4ew4=";
};
strictDeps = true;
nativeBuildInputs = [ byacc installShellFiles ];
2023-07-09 19:05:04 +00:00
enableParallelBuilding = true;
2023-06-28 00:23:10 +00:00
patches = [ ./path.patch ];
makeFlags = [ "PREFIX=$(out)" ];
2023-06-28 00:23:10 +00:00
installPhase = ''
runHook preInstall
2023-06-28 00:23:10 +00:00
install -Dm755 -t $out/bin/ rc
installManPage rc.1
mkdir -p $out/lib
install -m644 rcmain.unix $out/lib/rcmain
runHook postInstall
2023-06-28 00:23:10 +00:00
'';
2023-07-17 03:50:24 +00:00
passthru = {
shellPath = "/bin/rc";
updateScript = unstableGitUpdater { shallowClone = false; };
};
2023-06-28 00:23:10 +00:00
meta = with lib; {
description = "The 9front shell";
longDescription = "unix port of 9front rc";
homepage = "http://shithub.us/cinap_lenrek/rc/HEAD/info.html";
license = licenses.mit;
maintainers = with maintainers; [ moody ];
mainProgram = "rc";
platforms = platforms.all;
};
}