Rename project to nix-eval-jobs
We are getting rid of Hydra specific hacks and making this a more generically useful component for any projects that need to run large evaluations.
This commit is contained in:
parent
273b761919
commit
174e735183
|
@ -1,2 +1,2 @@
|
||||||
# hydra-eval-jobs
|
# nix-eval-jobs
|
||||||
Eval nix expressions from flakes (extracted from hydra)
|
Eval nix expressions from flakes (extracted from hydra)
|
||||||
|
|
|
@ -10,10 +10,10 @@
|
||||||
pkgs = nixpkgs.legacyPackages.${system};
|
pkgs = nixpkgs.legacyPackages.${system};
|
||||||
in
|
in
|
||||||
rec {
|
rec {
|
||||||
packages.hydra-eval-jobs = pkgs.callPackage ./hydra.nix {
|
packages.nix-eval-jobs = pkgs.callPackage ./hydra.nix {
|
||||||
srcDir = self;
|
srcDir = self;
|
||||||
};
|
};
|
||||||
defaultPackage = self.packages.${system}.hydra-eval-jobs;
|
defaultPackage = self.packages.${system}.nix-eval-jobs;
|
||||||
devShell = defaultPackage.overrideAttrs (old: {
|
devShell = defaultPackage.overrideAttrs (old: {
|
||||||
nativeBuildInputs = old.nativeBuildInputs ++ [
|
nativeBuildInputs = old.nativeBuildInputs ++ [
|
||||||
(pkgs.python3.withPackages(ps: [
|
(pkgs.python3.withPackages(ps: [
|
||||||
|
|
|
@ -14,7 +14,7 @@ let
|
||||||
(path: type: type != "directory" || baseNameOf path != "build") dir;
|
(path: type: type != "directory" || baseNameOf path != "build") dir;
|
||||||
in
|
in
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "hydra-eval-jobs";
|
pname = "nix-eval-jobs";
|
||||||
version = "0.0.1";
|
version = "0.0.1";
|
||||||
src = if srcDir == null then filterMesonBuild ./. else srcDir;
|
src = if srcDir == null then filterMesonBuild ./. else srcDir;
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
|
@ -27,7 +27,7 @@ stdenv.mkDerivation rec {
|
||||||
];
|
];
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
description = "Hydra's builtin hydra-eval-jobs as a standalone";
|
description = "Hydra's builtin hydra-eval-jobs as a standalone";
|
||||||
homepage = "https://github.com/Mic92/hydra-eval-jobs";
|
homepage = "https://github.com/nix-community/nix-eval-jobs";
|
||||||
license = licenses.mit;
|
license = licenses.mit;
|
||||||
maintainers = with maintainers; [ mic92 ];
|
maintainers = with maintainers; [ mic92 ];
|
||||||
platforms = platforms.unix;
|
platforms = platforms.unix;
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
project('hydra-eval-jobs', 'cpp',
|
project('nix-eval-jobs', 'cpp',
|
||||||
version : '0.1.6',
|
version : '0.1.6',
|
||||||
license : 'GPL-3.0',
|
license : 'GPL-3.0',
|
||||||
)
|
)
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
src = [
|
src = [
|
||||||
'hydra-eval-jobs.cc',
|
'nix-eval-jobs.cc',
|
||||||
]
|
]
|
||||||
|
|
||||||
executable('hydra-eval-jobs', src,
|
executable('nix-eval-jobs', src,
|
||||||
dependencies : [
|
dependencies : [
|
||||||
nix_main_dep,
|
nix_main_dep,
|
||||||
nix_store_dep,
|
nix_store_dep,
|
||||||
|
|
|
@ -38,13 +38,13 @@ struct MyArgs : MixEvalArgs, MixCommonArgs
|
||||||
size_t maxMemorySize = 4096;
|
size_t maxMemorySize = 4096;
|
||||||
pureEval evalMode = evalAuto;
|
pureEval evalMode = evalAuto;
|
||||||
|
|
||||||
MyArgs() : MixCommonArgs("hydra-eval-jobs")
|
MyArgs() : MixCommonArgs("nix-eval-jobs")
|
||||||
{
|
{
|
||||||
addFlag({
|
addFlag({
|
||||||
.longName = "help",
|
.longName = "help",
|
||||||
.description = "show usage information",
|
.description = "show usage information",
|
||||||
.handler = {[&]() {
|
.handler = {[&]() {
|
||||||
printf("USAGE: hydra-eval-jobs [options] expr\n\n");
|
printf("USAGE: nix-eval-jobs [options] expr\n\n");
|
||||||
for (const auto & [name, flag] : longFlags) {
|
for (const auto & [name, flag] : longFlags) {
|
||||||
if (hiddenCategories.count(flag->category)) {
|
if (hiddenCategories.count(flag->category)) {
|
||||||
continue;
|
continue;
|
|
@ -8,7 +8,7 @@ from typing import List
|
||||||
|
|
||||||
TEST_ROOT = Path(__file__).parent.resolve()
|
TEST_ROOT = Path(__file__).parent.resolve()
|
||||||
PROJECT_ROOT = TEST_ROOT.parent
|
PROJECT_ROOT = TEST_ROOT.parent
|
||||||
BIN = PROJECT_ROOT.joinpath("build", "src", "hydra-eval-jobs")
|
BIN = PROJECT_ROOT.joinpath("build", "src", "nix-eval-jobs")
|
||||||
|
|
||||||
|
|
||||||
def common_test(extra_args: List[str]) -> None:
|
def common_test(extra_args: List[str]) -> None:
|
||||||
|
|
Loading…
Reference in a new issue