f1f4e068ba
Flake lock file updates: • Updated input 'lix': 'b016eb0895
.tar.gz?narHash=sha256-kOpGI9WPmte1L4QWHviuXsr8jxmGn27zwi82jtzYObM%3D&rev=b016eb0895bb6714a4f6530d9a2bb6577ac6c3cf' (2024-08-13) → '4d04adf6ba
.tar.gz?narHash=sha256-p2ZBGGLixOV2Hwz3FQoj/i%2B5/kzfyRc7fYbNcz5ddtE%3D&rev=4d04adf6ba170a6658414be121b48924813fdff4' (2024-08-12)
37 lines
867 B
Nix
37 lines
867 B
Nix
{ 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.91.0-unstable";
|
|
src = if srcDir == null then filterMesonBuild ./. else srcDir;
|
|
buildInputs = with pkgs; [
|
|
nlohmann_json
|
|
nix
|
|
boost
|
|
];
|
|
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 ]);
|
|
|
|
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;
|
|
};
|
|
}
|