btrbk: add mainProgram (#356350)
[NixPkgs.git] / pkgs / development / compilers / arocc / package.nix
blobedd3316fa63890fb3592f211fc1739b451c978aa
2   lib,
3   stdenv,
4   wrapCCWith,
5   overrideCC,
6   zig,
7   version,
8   src,
9 }:
10 stdenv.mkDerivation (finalAttrs: {
11   pname = "arocc";
12   inherit version src;
14   nativeBuildInputs = [ zig.hook ];
16   passthru = {
17     inherit zig;
18     isArocc = true;
19     wrapped = wrapCCWith { cc = finalAttrs.finalPackage; };
20     stdenv = overrideCC stdenv finalAttrs.passthru.wrapped;
21   };
23   meta = {
24     description = "C compiler written in Zig.";
25     homepage = "http://aro.vexu.eu/";
26     license = with lib.licenses; [
27       mit
28       unicode-30
29     ];
30     maintainers = with lib.maintainers; [ RossComputerGuy ];
31     mainProgram = "arocc";
32   };