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:
adisbladis 2021-08-24 13:13:04 -05:00
parent 273b761919
commit 174e735183
No known key found for this signature in database
GPG key ID: 110BFAD44C6249B7
7 changed files with 11 additions and 11 deletions

View file

@ -1,2 +1,2 @@
# hydra-eval-jobs
# nix-eval-jobs
Eval nix expressions from flakes (extracted from hydra)

View file

@ -10,10 +10,10 @@
pkgs = nixpkgs.legacyPackages.${system};
in
rec {
packages.hydra-eval-jobs = pkgs.callPackage ./hydra.nix {
packages.nix-eval-jobs = pkgs.callPackage ./hydra.nix {
srcDir = self;
};
defaultPackage = self.packages.${system}.hydra-eval-jobs;
defaultPackage = self.packages.${system}.nix-eval-jobs;
devShell = defaultPackage.overrideAttrs (old: {
nativeBuildInputs = old.nativeBuildInputs ++ [
(pkgs.python3.withPackages(ps: [

View file

@ -14,7 +14,7 @@ let
(path: type: type != "directory" || baseNameOf path != "build") dir;
in
stdenv.mkDerivation rec {
pname = "hydra-eval-jobs";
pname = "nix-eval-jobs";
version = "0.0.1";
src = if srcDir == null then filterMesonBuild ./. else srcDir;
buildInputs = [
@ -27,7 +27,7 @@ stdenv.mkDerivation rec {
];
meta = with stdenv.lib; {
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;
maintainers = with maintainers; [ mic92 ];
platforms = platforms.unix;

View file

@ -1,4 +1,4 @@
project('hydra-eval-jobs', 'cpp',
project('nix-eval-jobs', 'cpp',
version : '0.1.6',
license : 'GPL-3.0',
)

View file

@ -1,8 +1,8 @@
src = [
'hydra-eval-jobs.cc',
'nix-eval-jobs.cc',
]
executable('hydra-eval-jobs', src,
executable('nix-eval-jobs', src,
dependencies : [
nix_main_dep,
nix_store_dep,

View file

@ -38,13 +38,13 @@ struct MyArgs : MixEvalArgs, MixCommonArgs
size_t maxMemorySize = 4096;
pureEval evalMode = evalAuto;
MyArgs() : MixCommonArgs("hydra-eval-jobs")
MyArgs() : MixCommonArgs("nix-eval-jobs")
{
addFlag({
.longName = "help",
.description = "show usage information",
.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) {
if (hiddenCategories.count(flag->category)) {
continue;

View file

@ -8,7 +8,7 @@ from typing import List
TEST_ROOT = Path(__file__).parent.resolve()
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: