nixpkgs/pkgs/by-name/rc/rc-9front/package.nix
aleksana 571c71e6f7 treewide: migrate packages to pkgs/by-name, take 1
We are migrating packages that meet below requirements:

1. using `callPackage`
2. called path is a directory
3. overriding set is empty (`{ }`)
4. not containing path expressions other than relative path (to
makenixpkgs-vet happy)
5. not referenced by nix files outside of the directory, other
than`pkgs/top-level/all-packages.nix`
6. not referencing nix files outside of the directory
7. not referencing `default.nix` (since it's changed to `package.nix`)
8. `outPath` doesn't change after migration

The tool is here: https://github.com/Aleksanaa/by-name-migrate.
2024-11-09 20:04:51 +08:00

53 lines
1.2 KiB
Nix

{ lib
, stdenv
, fetchFrom9Front
, unstableGitUpdater
, byacc
, installShellFiles
}:
stdenv.mkDerivation {
pname = "rc-9front";
version = "0-unstable-2022-11-01";
src = fetchFrom9Front {
domain = "shithub.us";
owner = "cinap_lenrek";
repo = "rc";
rev = "69041639483e16392e3013491fcb382efd2b9374";
hash = "sha256-xc+EfC4bc9ZA97jCQ6CGCzeLGf+Hx3/syl090/x4ew4=";
};
strictDeps = true;
nativeBuildInputs = [ byacc installShellFiles ];
enableParallelBuilding = true;
patches = [ ./path.patch ];
makeFlags = [ "PREFIX=$(out)" ];
installPhase = ''
runHook preInstall
install -Dm755 -t $out/bin/ rc
installManPage rc.1
mkdir -p $out/lib
install -m644 rcmain.unix $out/lib/rcmain
runHook postInstall
'';
passthru = {
shellPath = "/bin/rc";
updateScript = unstableGitUpdater { shallowClone = false; };
};
meta = with lib; {
description = "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;
};
}