Files
lix/subprojects/nix-eval-jobs/default.nix
T
Linus Heckemann 6eda9a95a4 nix-eval-jobs: passthru nix
Change-Id: Ied6d4abb8a67dcbe221271e6be1a14b71f9543d1
2025-02-20 22:36:53 +01:00

52 lines
1.0 KiB
Nix

{
stdenv,
lib,
nix,
pkgs,
srcDir ? null,
}:
let
filterMesonBuild = builtins.filterSource (
path: type: type != "directory" || baseNameOf path != "build"
);
in
stdenv.mkDerivation {
pname = "nix-eval-jobs";
version = "2.93.0-dev";
src = if srcDir == null then filterMesonBuild ./. else srcDir;
buildInputs = with pkgs; [
nlohmann_json
nix
boost
];
nativeBuildInputs =
with pkgs;
[
meson
pkg-config
ninja
# nlohmann_json can be only discovered via cmake files
cmake
# XXX: ew
nix.passthru.capnproto-lix
]
++ (lib.optional stdenv.cc.isClang [ pkgs.clang-tools ]);
# nix-fast-build wants the nix attr on nix-eval-jobs
passthru = {
inherit nix;
};
meta = {
description = "Hydra's builtin hydra-eval-jobs as a standalone";
homepage = "https://github.com/nix-community/nix-eval-jobs";
license = lib.licenses.gpl3;
maintainers = with lib.maintainers; [
adisbladis
mic92
];
platforms = lib.platforms.unix;
};
}