mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-14 09:43:14 +00:00
34 lines
630 B
Nix
34 lines
630 B
Nix
|
{
|
||
|
lib,
|
||
|
stdenv,
|
||
|
wrapCCWith,
|
||
|
overrideCC,
|
||
|
zig,
|
||
|
version,
|
||
|
src,
|
||
|
}:
|
||
|
stdenv.mkDerivation (finalAttrs: {
|
||
|
pname = "arocc";
|
||
|
inherit version src;
|
||
|
|
||
|
nativeBuildInputs = [ zig.hook ];
|
||
|
|
||
|
passthru = {
|
||
|
inherit zig;
|
||
|
isArocc = true;
|
||
|
wrapped = wrapCCWith { cc = finalAttrs.finalPackage; };
|
||
|
stdenv = overrideCC stdenv finalAttrs.passthru.wrapped;
|
||
|
};
|
||
|
|
||
|
meta = {
|
||
|
description = "C compiler written in Zig.";
|
||
|
homepage = "http://aro.vexu.eu/";
|
||
|
license = with lib.licenses; [
|
||
|
mit
|
||
|
unicode-30
|
||
|
];
|
||
|
maintainers = with lib.maintainers; [ RossComputerGuy ];
|
||
|
mainProgram = "arocc";
|
||
|
};
|
||
|
})
|