nix-eval-jobs/default.nix

43 lines
850 B
Nix
Raw Normal View History

{ stdenv
, lib
, nix
, meson
, cmake
, ninja
, pkg-config
, boost
, nlohmann_json
, srcDir ? null
}:
let
filterMesonBuild = dir: builtins.filterSource
2021-09-25 03:17:06 +00:00
(path: type: type != "directory" || baseNameOf path != "build")
dir;
in
stdenv.mkDerivation rec {
pname = "nix-eval-jobs";
2022-10-31 06:09:44 +00:00
version = "2.11.0";
src = if srcDir == null then filterMesonBuild ./. else srcDir;
buildInputs = [
2021-09-25 03:17:06 +00:00
nlohmann_json
nix
2021-09-25 03:17:06 +00:00
boost
];
nativeBuildInputs = [
2021-09-25 03:17:06 +00:00
meson
pkg-config
ninja
# nlohmann_json can be only discovered via cmake files
cmake
];
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;
};
}