Skip to content

Commit 51944a5

Browse files
authored
Merge pull request #1443 from NixOS/nix-2.26
Nix 2.26
2 parents ea09952 + 341b2f1 commit 51944a5

File tree

5 files changed

+39
-54
lines changed

5 files changed

+39
-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

+8-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,12 @@
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-cli
89+
;
9190
nix-perl-bindings = nix.hydraJobs.perlBindings.${system};
9291
};
9392
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

+12-6
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,10 @@
88

99
, perlPackages
1010

11-
, nix
11+
, nix-util
12+
, nix-store
13+
, nix-main
14+
, nix-cli
1215
, nix-perl-bindings
1316
, git
1417

@@ -162,7 +165,7 @@ stdenv.mkDerivation (finalAttrs: {
162165
nukeReferences
163166
pkg-config
164167
mdbook
165-
nix
168+
nix-cli
166169
perlDeps
167170
perl
168171
unzip
@@ -172,7 +175,9 @@ stdenv.mkDerivation (finalAttrs: {
172175
libpqxx
173176
openssl
174177
libxslt
175-
nix
178+
nix-util
179+
nix-store
180+
nix-main
176181
perlDeps
177182
perl
178183
boost
@@ -199,13 +204,14 @@ stdenv.mkDerivation (finalAttrs: {
199204
glibcLocales
200205
libressl.nc
201206
python3
207+
nix-cli
202208
];
203209

204210
hydraPath = lib.makeBinPath (
205211
[
206212
subversion
207213
openssh
208-
nix
214+
nix-cli
209215
coreutils
210216
findutils
211217
pixz
@@ -266,13 +272,13 @@ stdenv.mkDerivation (finalAttrs: {
266272
--prefix PATH ':' $out/bin:$hydraPath \
267273
--set HYDRA_RELEASE ${version} \
268274
--set HYDRA_HOME $out/libexec/hydra \
269-
--set NIX_RELEASE ${nix.name or "unknown"} \
275+
--set NIX_RELEASE ${nix-cli.name or "unknown"} \
270276
--set NIX_EVAL_JOBS_RELEASE ${nix-eval-jobs.name or "unknown"}
271277
done
272278
'';
273279

274280
dontStrip = true;
275281

276282
meta.description = "Build of Hydra on ${stdenv.system}";
277-
passthru = { inherit perlDeps nix; };
283+
passthru = { inherit perlDeps; };
278284
})

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_evaluator.full_path()),
3132
fs.parent(hydra_queue_runner.full_path()),
3233
meson.project_source_root() / 'src/script',

0 commit comments

Comments
 (0)