nix-eval-jobs/hydra.nix

37 lines
827 B
Nix
Raw Normal View History

2021-03-15 05:09:41 +00:00
{ stdenv
2021-08-24 19:07:11 +00:00
, lib
2021-03-15 05:09:41 +00:00
, nixFlakes
, meson
, cmake
, ninja
, pkg-config
, boost
, nlohmann_json
2021-03-15 05:19:54 +00:00
, srcDir ? null
2021-03-15 05:09:41 +00:00
}:
let
filterMesonBuild = dir: builtins.filterSource
(path: type: type != "directory" || baseNameOf path != "build") dir;
in
stdenv.mkDerivation rec {
pname = "nix-eval-jobs";
2021-03-15 05:09:41 +00:00
version = "0.0.1";
2021-03-15 05:19:54 +00:00
src = if srcDir == null then filterMesonBuild ./. else srcDir;
2021-03-15 05:09:41 +00:00
buildInputs = [
nlohmann_json nixFlakes boost
];
nativeBuildInputs = [
meson pkg-config ninja
# nlohmann_json can be only discovered via cmake files
cmake
];
2021-08-24 19:07:11 +00:00
meta = with lib; {
2021-03-15 05:09:41 +00:00
description = "Hydra's builtin hydra-eval-jobs as a standalone";
homepage = "https://github.com/nix-community/nix-eval-jobs";
license = licenses.gpl3;
2021-03-15 05:09:41 +00:00
maintainers = with maintainers; [ mic92 ];
platforms = platforms.unix;
};
}