2021-09-25 03:02:34 +00:00
|
|
|
{ stdenv
|
|
|
|
, lib
|
2022-01-07 19:53:59 +00:00
|
|
|
, nix
|
2023-07-13 09:45:06 +00:00
|
|
|
, pkgs
|
2021-09-25 03:02:34 +00:00
|
|
|
, srcDir ? null
|
|
|
|
}:
|
|
|
|
|
|
|
|
let
|
2023-07-13 09:45:06 +00:00
|
|
|
filterMesonBuild = builtins.filterSource
|
|
|
|
(path: type: type != "directory" || baseNameOf path != "build");
|
2021-09-25 03:02:34 +00:00
|
|
|
in
|
2023-07-13 09:45:06 +00:00
|
|
|
stdenv.mkDerivation {
|
2021-09-25 03:02:34 +00:00
|
|
|
pname = "nix-eval-jobs";
|
2024-05-27 18:54:51 +00:00
|
|
|
version = "2.90.0-unstable";
|
2021-09-25 03:02:34 +00:00
|
|
|
src = if srcDir == null then filterMesonBuild ./. else srcDir;
|
2023-07-13 09:45:06 +00:00
|
|
|
buildInputs = with pkgs; [
|
2021-09-25 03:17:06 +00:00
|
|
|
nlohmann_json
|
2022-01-07 19:53:59 +00:00
|
|
|
nix
|
2021-09-25 03:17:06 +00:00
|
|
|
boost
|
2021-09-25 03:02:34 +00:00
|
|
|
];
|
2023-07-13 09:45:06 +00:00
|
|
|
nativeBuildInputs = with pkgs; [
|
2021-09-25 03:17:06 +00:00
|
|
|
meson
|
|
|
|
pkg-config
|
|
|
|
ninja
|
2021-09-25 03:02:34 +00:00
|
|
|
# nlohmann_json can be only discovered via cmake files
|
|
|
|
cmake
|
2023-08-22 19:34:30 +00:00
|
|
|
] ++ (lib.optional stdenv.cc.isClang [ pkgs.clang-tools ]);
|
2021-09-25 03:02:34 +00:00
|
|
|
|
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|