1{
2 lib,
3 boost,
4 cmake,
5 fetchFromGitHub,
6 meson,
7 ninja,
8 curl,
9 nix,
10 nlohmann_json,
11 pkg-config,
12 stdenv,
13}:
14stdenv.mkDerivation rec {
15 pname = "nix-eval-jobs";
16 version = "2.30.0";
17
18 src = fetchFromGitHub {
19 owner = "nix-community";
20 repo = "nix-eval-jobs";
21 tag = "v${version}";
22 hash = "sha256-urOFgqXzs+cgd1CKFuN245vOeVx7rIldlS9Q5WcemCw=";
23 };
24
25 buildInputs = [
26 boost
27 nix
28 curl
29 nlohmann_json
30 ];
31
32 nativeBuildInputs = [
33 meson
34 ninja
35 pkg-config
36 ];
37
38 outputs = [
39 "out"
40 "dev"
41 ];
42
43 # Since this package is intimately tied to a specific Nix release, we
44 # propagate the Nix used for building it to make it easier for users
45 # downstream to reference it.
46 passthru = { inherit nix; };
47
48 meta = {
49 description = "Hydra's builtin hydra-eval-jobs as a standalone";
50 homepage = "https://github.com/nix-community/nix-eval-jobs";
51 license = lib.licenses.gpl3;
52 maintainers = with lib.maintainers; [
53 adisbladis
54 mic92
55 ];
56 platforms = lib.platforms.unix;
57 mainProgram = "nix-eval-jobs";
58 };
59}