-
-
Notifications
You must be signed in to change notification settings - Fork 31
/
default.nix
46 lines (44 loc) · 940 Bytes
/
default.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
{
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.24.1";
src = if srcDir == null then filterMesonBuild ./. else srcDir;
buildInputs = with pkgs; [
nlohmann_json
nix
boost
curl
];
nativeBuildInputs =
with pkgs;
[
meson
pkg-config
ninja
# nlohmann_json can be only discovered via cmake files
cmake
]
++ (lib.optional stdenv.cc.isClang [ pkgs.clang-tools ]);
passthru.nix = 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;
};
}