2023-07-09 21:05:04 +02:00
|
|
|
{ lib
|
2023-06-28 02:23:10 +02:00
|
|
|
, stdenv
|
2023-07-17 05:50:24 +02:00
|
|
|
, fetchFrom9Front
|
|
|
|
, unstableGitUpdater
|
2023-06-28 02:23:10 +02:00
|
|
|
, byacc
|
|
|
|
, installShellFiles
|
|
|
|
}:
|
|
|
|
|
2023-07-09 21:05:04 +02:00
|
|
|
stdenv.mkDerivation {
|
2023-06-28 02:23:10 +02:00
|
|
|
pname = "rc-9front";
|
|
|
|
version = "unstable-2022-11-01";
|
|
|
|
|
2023-07-17 05:50:24 +02:00
|
|
|
src = fetchFrom9Front {
|
|
|
|
domain = "shithub.us";
|
|
|
|
owner = "cinap_lenrek";
|
|
|
|
repo = "rc";
|
2023-06-28 02:23:10 +02:00
|
|
|
rev = "69041639483e16392e3013491fcb382efd2b9374";
|
|
|
|
hash = "sha256-xc+EfC4bc9ZA97jCQ6CGCzeLGf+Hx3/syl090/x4ew4=";
|
|
|
|
};
|
|
|
|
|
|
|
|
strictDeps = true;
|
|
|
|
nativeBuildInputs = [ byacc installShellFiles ];
|
2023-07-09 21:05:04 +02:00
|
|
|
enableParallelBuilding = true;
|
2023-06-28 02:23:10 +02:00
|
|
|
patches = [ ./path.patch ];
|
2023-08-07 00:14:19 +02:00
|
|
|
makeFlags = [ "PREFIX=$(out)" ];
|
2023-06-28 02:23:10 +02:00
|
|
|
|
|
|
|
installPhase = ''
|
2023-08-07 00:14:19 +02:00
|
|
|
runHook preInstall
|
|
|
|
|
2023-06-28 02:23:10 +02:00
|
|
|
install -Dm755 -t $out/bin/ rc
|
|
|
|
installManPage rc.1
|
|
|
|
mkdir -p $out/lib
|
|
|
|
install -m644 rcmain.unix $out/lib/rcmain
|
2023-08-07 00:14:19 +02:00
|
|
|
|
|
|
|
runHook postInstall
|
2023-06-28 02:23:10 +02:00
|
|
|
'';
|
|
|
|
|
2023-07-17 05:50:24 +02:00
|
|
|
passthru = {
|
|
|
|
shellPath = "/bin/rc";
|
|
|
|
updateScript = unstableGitUpdater { shallowClone = false; };
|
|
|
|
};
|
2023-06-28 02:23:10 +02: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;
|
|
|
|
};
|
|
|
|
}
|