Skip to content

Commit 1381ee8

Browse files
committed
Merge branch 'master' into use-store-api
2 parents b767c82 + 51944a5 commit 1381ee8

File tree

6 files changed

+43
-54
lines changed

6 files changed

+43
-54
lines changed

flake.lock

+11-32
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

flake.nix

+9-9
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,11 @@
11
{
22
description = "A Nix-based continuous build system";
33

4-
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-24.05-small";
5-
6-
inputs.libgit2 = {
7-
url = "github:libgit2/libgit2/v1.8.1";
8-
flake = false;
9-
};
4+
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-24.11-small";
105

116
inputs.nix = {
12-
url = "github:NixOS/nix/2.25-maintenance";
7+
url = "github:NixOS/nix/2.26-maintenance";
138
inputs.nixpkgs.follows = "nixpkgs";
14-
inputs.libgit2.follows = "libgit2";
159

1610
# hide nix dev tooling from our lock file
1711
inputs.flake-parts.follows = "";
@@ -87,7 +81,13 @@
8781
inherit (nixpkgs.lib) fileset;
8882
inherit (self.packages.${system}) nix-eval-jobs;
8983
rawSrc = self;
90-
nix = nix.packages.${system}.nix;
84+
inherit (nix.packages.${system})
85+
nix-util
86+
nix-store
87+
nix-main
88+
nix-cmd
89+
nix-cli
90+
;
9191
nix-perl-bindings = nix.hydraJobs.perlBindings.${system};
9292
};
9393
default = self.packages.${system}.hydra;

meson.build

+7-7
Original file line numberDiff line numberDiff line change
@@ -8,22 +8,22 @@ project('hydra', 'cpp',
88
],
99
)
1010

11+
nix_util_dep = dependency('nix-util', required: true)
1112
nix_store_dep = dependency('nix-store', required: true)
1213
nix_main_dep = dependency('nix-main', required: true)
13-
nix_expr_dep = dependency('nix-expr', required: true)
14-
nix_flake_dep = dependency('nix-flake', required: true)
15-
nix_cmd_dep = dependency('nix-cmd', required: true)
1614

1715
# Nix need extra flags not provided in its pkg-config files.
1816
nix_dep = declare_dependency(
1917
dependencies: [
18+
nix_util_dep,
2019
nix_store_dep,
2120
nix_main_dep,
22-
nix_expr_dep,
23-
nix_flake_dep,
24-
nix_cmd_dep,
2521
],
26-
compile_args: ['-include', 'nix/config.h'],
22+
compile_args: [
23+
'-include', 'nix/config-util.hh',
24+
'-include', 'nix/config-store.hh',
25+
'-include', 'nix/config-main.hh',
26+
],
2727
)
2828

2929
pqxx_dep = dependency('libpqxx', required: true)

package.nix

+14-6
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,11 @@
88

99
, perlPackages
1010

11-
, nix
11+
, nix-util
12+
, nix-store
13+
, nix-main
14+
, nix-cmd
15+
, nix-cli
1216
, nix-perl-bindings
1317
, git
1418

@@ -162,7 +166,7 @@ stdenv.mkDerivation (finalAttrs: {
162166
nukeReferences
163167
pkg-config
164168
mdbook
165-
nix
169+
nix-cli
166170
perlDeps
167171
perl
168172
unzip
@@ -172,7 +176,10 @@ stdenv.mkDerivation (finalAttrs: {
172176
libpqxx
173177
openssl
174178
libxslt
175-
nix
179+
nix-util
180+
nix-store
181+
nix-main
182+
nix-cmd
176183
perlDeps
177184
perl
178185
boost
@@ -199,13 +206,14 @@ stdenv.mkDerivation (finalAttrs: {
199206
glibcLocales
200207
libressl.nc
201208
python3
209+
nix-cli
202210
];
203211

204212
hydraPath = lib.makeBinPath (
205213
[
206214
subversion
207215
openssh
208-
nix
216+
nix-cli
209217
coreutils
210218
findutils
211219
pixz
@@ -266,13 +274,13 @@ stdenv.mkDerivation (finalAttrs: {
266274
--prefix PATH ':' $out/bin:$hydraPath \
267275
--set HYDRA_RELEASE ${version} \
268276
--set HYDRA_HOME $out/libexec/hydra \
269-
--set NIX_RELEASE ${nix.name or "unknown"} \
277+
--set NIX_RELEASE ${nix-cli.name or "unknown"} \
270278
--set NIX_EVAL_JOBS_RELEASE ${nix-eval-jobs.name or "unknown"}
271279
done
272280
'';
273281

274282
dontStrip = true;
275283

276284
meta.description = "Build of Hydra on ${stdenv.system}";
277-
passthru = { inherit perlDeps nix; };
285+
passthru = { inherit perlDeps; };
278286
})

src/hydra-build-step/meson.build

+1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ hydra_build_step = executable('hydra-build-step',
88
dependencies: [
99
libhydra_dep,
1010
nix_dep,
11+
dependency('nix-cmd', required: true)
1112
],
1213
install: true,
1314
)

t/meson.build

+1
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ testenv.prepend('PERL5LIB',
2727
separator: ':'
2828
)
2929
testenv.prepend('PATH',
30+
fs.parent(find_program('nix').full_path()),
3031
fs.parent(hydra_build_step.full_path()),
3132
fs.parent(hydra_evaluator.full_path()),
3233
fs.parent(hydra_queue_runner.full_path()),

0 commit comments

Comments
 (0)