Files
lix/subprojects/nix-eval-jobs/default.nix
T
Jade LovelaceandJade Lovelace 80f814d2a1 nix-eval-jobs: integrate into lix build system and delete cruft
We don't want any of this github integration stuff since it won't do
anything, flakes don't support subdirs properly and maintaining a second
flake is pointless and annoying, and then the rest is lix formatting
standards hitting n-e-j.

Yeet!

Change-Id: Ibcd3b0182d90f727562a92c215b6061c16502554
2025-01-29 10:10:11 -08:00

47 lines
962 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.93.0-dev";
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
# XXX: ew
nix.passthru.capnproto-lix
]
++ (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;
};
}