mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-07-06 17:13:24 -05:00
staging-nixos-26.05 merge for 2026-06-27 (#535987)
This commit is contained in:
commit
4b0394ee60
10 changed files with 54 additions and 22 deletions
|
|
@ -1586,7 +1586,7 @@ class NspawnMachine(BaseMachine):
|
|||
# NOTE If the test calls switch-to-configuration (with a differently configured specialization)
|
||||
# this will use the /etc/profile of the new specialisation while `QemuMachine` nodes
|
||||
# will continue to use the original /etc/profile.
|
||||
command = f"set -eo pipefail; source /etc/profile; set -u; {command}"
|
||||
command = f"set -eo pipefail; USER=root HOME=/root source /etc/profile; set -u; {command}"
|
||||
|
||||
cp = subprocess.run(
|
||||
[
|
||||
|
|
|
|||
|
|
@ -135,8 +135,13 @@ let
|
|||
);
|
||||
udevRules = map (
|
||||
interface:
|
||||
# MAC Addresses for QEMU network devices are lowercase, and udev string comparison is case-sensitive.
|
||||
''SUBSYSTEM=="net",ACTION=="add",ATTR{address}=="${toLower (qemu-common.qemuNicMac interface.vlan config.virtualisation.test.nodeNumber)}",NAME="${interface.name}"''
|
||||
lib.concatStringsSep ", " [
|
||||
''SUBSYSTEM=="net"''
|
||||
''ACTION=="add"''
|
||||
# MAC Addresses for QEMU network devices are lowercase, and udev string comparison is case-sensitive.
|
||||
''ATTR{address}=="${toLower (qemu-common.qemuNicMac interface.vlan config.virtualisation.test.nodeNumber)}"''
|
||||
''NAME="${interface.name}"''
|
||||
]
|
||||
) interfaces;
|
||||
in
|
||||
{
|
||||
|
|
|
|||
|
|
@ -40,6 +40,7 @@ let
|
|||
"network-online.target"
|
||||
"nss-lookup.target"
|
||||
"nss-user-lookup.target"
|
||||
"time-set.target"
|
||||
"time-sync.target"
|
||||
"first-boot-complete.target"
|
||||
]
|
||||
|
|
|
|||
|
|
@ -124,6 +124,16 @@ let
|
|||
jobScripts = concatLists (
|
||||
mapAttrsToList (_: unit: unit.jobScripts or [ ]) (filterAttrs (_: v: v.enable) cfg.services)
|
||||
);
|
||||
unitEnv = pkgs.buildEnv {
|
||||
name = "initrd-unit-env";
|
||||
paths = concatLists (
|
||||
mapAttrsToList (_: unit: unit.path or [ ]) (filterAttrs (_: v: v.enable) cfg.services)
|
||||
);
|
||||
pathsToLink = [
|
||||
"/bin"
|
||||
"/sbin"
|
||||
];
|
||||
};
|
||||
|
||||
stage1Units = generateUnits {
|
||||
type = "initrd";
|
||||
|
|
@ -636,6 +646,7 @@ in
|
|||
"${pkgs.bashNonInteractive}/bin"
|
||||
]
|
||||
++ jobScripts
|
||||
++ [ unitEnv ]
|
||||
++ map (c: removeAttrs c [ "text" ]) (builtins.attrValues cfg.contents)
|
||||
++ lib.optional (pkgs.stdenv.hostPlatform.libc == "glibc") "${pkgs.glibc}/lib/libnss_files.so.2";
|
||||
|
||||
|
|
|
|||
|
|
@ -1,11 +1,16 @@
|
|||
{
|
||||
name = "simple-container";
|
||||
|
||||
containers.machine = { };
|
||||
containers = {
|
||||
machine = { pkgs, ... }: {
|
||||
users.users.root.packages = [ pkgs.hello ];
|
||||
};
|
||||
noprofile = { };
|
||||
};
|
||||
|
||||
testScript = ''
|
||||
start_all()
|
||||
machine.wait_for_unit("multi-user.target")
|
||||
machine.shutdown()
|
||||
machine.succeed("hello")
|
||||
noprofile.fail("hello")
|
||||
'';
|
||||
}
|
||||
|
|
|
|||
|
|
@ -31,7 +31,7 @@
|
|||
|
||||
rustPlatform.buildRustPackage (finalAttrs: {
|
||||
pname = "gram";
|
||||
version = "2.1.2";
|
||||
version = "2.2.0";
|
||||
|
||||
outputs = [
|
||||
"out"
|
||||
|
|
@ -44,7 +44,7 @@ rustPlatform.buildRustPackage (finalAttrs: {
|
|||
owner = "GramEditor";
|
||||
repo = "gram";
|
||||
tag = finalAttrs.version;
|
||||
hash = "sha256-7FzAvC/JMMIFcuTGkL2Ju644UAIsneOMhiDUFnQske4=";
|
||||
hash = "sha256-w0uZ2qAc3Tt6QVRAX97LWW9aOs02fG1SEYCDhpUhinE=";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
|
|
@ -54,7 +54,7 @@ rustPlatform.buildRustPackage (finalAttrs: {
|
|||
--replace-fail '$CARGO_ABOUT_VERSION' '${cargo-about.version}'
|
||||
'';
|
||||
|
||||
cargoHash = "sha256-feESY8ALSG3xa906HBc4pOKGerQ1jF7VUxzvUcsZbrY=";
|
||||
cargoHash = "sha256-+lmDbawAIRllC7LzGJ9qPMtHXPd5aMoul47YOA7nfXA=";
|
||||
|
||||
__structuredAttrs = true;
|
||||
|
||||
|
|
@ -71,7 +71,7 @@ rustPlatform.buildRustPackage (finalAttrs: {
|
|||
dontUseCmakeConfigure = true;
|
||||
|
||||
buildInputs = [
|
||||
libgit2
|
||||
(libgit2.override { withExperimentalSha256 = true; })
|
||||
openssl
|
||||
sqlite
|
||||
zlib
|
||||
|
|
|
|||
|
|
@ -17,6 +17,7 @@
|
|||
gitstatus,
|
||||
llhttp,
|
||||
withGssapi ? false,
|
||||
withExperimentalSha256 ? false,
|
||||
krb5,
|
||||
}:
|
||||
|
||||
|
|
@ -43,6 +44,7 @@ stdenv.mkDerivation (finalAttrs: {
|
|||
"-DUSE_HTTP_PARSER=llhttp"
|
||||
"-DUSE_SSH=ON"
|
||||
(lib.cmakeBool "USE_GSSAPI" withGssapi)
|
||||
(lib.cmakeBool "EXPERIMENTAL_SHA256" withExperimentalSha256)
|
||||
"-DBUILD_SHARED_LIBS=${if staticBuild then "OFF" else "ON"}"
|
||||
]
|
||||
++ lib.optionals stdenv.hostPlatform.isWindows [
|
||||
|
|
@ -89,6 +91,13 @@ stdenv.mkDerivation (finalAttrs: {
|
|||
)
|
||||
'';
|
||||
|
||||
postInstall = lib.optionalString withExperimentalSha256 ''
|
||||
# Downstream Rust bindings (git2-rs / git2-sys) expect experimental headers
|
||||
# to be located at 'git2/experimental.h', but upstream libgit2 installs them
|
||||
# into 'git2-experimental/' when EXPERIMENTAL_SHA256 is enabled.
|
||||
ln -s git2-experimental $dev/include/git2
|
||||
'';
|
||||
|
||||
passthru.tests = lib.mapAttrs (_: v: v.override { libgit2 = finalAttrs.finalPackage; }) {
|
||||
inherit libgit2-glib;
|
||||
inherit (python3Packages) pygit2;
|
||||
|
|
|
|||
|
|
@ -10,14 +10,14 @@
|
|||
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
pname = "libslirp";
|
||||
version = "4.9.1";
|
||||
version = "4.9.3";
|
||||
|
||||
src = fetchFromGitLab {
|
||||
domain = "gitlab.freedesktop.org";
|
||||
owner = "slirp";
|
||||
repo = "libslirp";
|
||||
rev = "v${finalAttrs.version}";
|
||||
sha256 = "sha256-MKP3iBExaPQryiahI1l/4bTgVht5Vu8AxaDyMotqmMo=";
|
||||
tag = "v${finalAttrs.version}";
|
||||
hash = "sha256-Spr3dO5ehuUlzx3EnJi8najANWOirwQcTsWTVRVXYuY=";
|
||||
};
|
||||
|
||||
separateDebugInfo = true;
|
||||
|
|
@ -35,6 +35,7 @@ stdenv.mkDerivation (finalAttrs: {
|
|||
'';
|
||||
|
||||
meta = {
|
||||
changelog = "https://gitlab.freedesktop.org/slirp/libslirp/-/blob/${finalAttrs.src.tag}/CHANGELOG.md";
|
||||
description = "General purpose TCP-IP emulator";
|
||||
homepage = "https://gitlab.freedesktop.org/slirp/libslirp";
|
||||
license = lib.licenses.bsd3;
|
||||
|
|
|
|||
|
|
@ -31,11 +31,11 @@ let
|
|||
in
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "nano";
|
||||
version = "9.0";
|
||||
version = "9.1";
|
||||
|
||||
src = fetchurl {
|
||||
url = "mirror://gnu/nano/${pname}-${version}.tar.xz";
|
||||
hash = "sha256-nzhDdLSWEQoltzrVpf67OEeDxuMYizcGP2d6yQgBP94=";
|
||||
url = "mirror://gnu/nano/nano-${version}.tar.xz";
|
||||
hash = "sha256-X0d2QnTLdTI0nOCqIOwQ8ejoUabp+j62aBLEPRltsEI=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ texinfo ] ++ lib.optional enableNls gettext;
|
||||
|
|
|
|||
|
|
@ -30,18 +30,18 @@
|
|||
"lts": true
|
||||
},
|
||||
"6.18": {
|
||||
"version": "6.18.36",
|
||||
"hash": "sha256:0kn4r43lnd5nb5c298b30030qyaxv05s7k40n9si1j3iyk4qdazv",
|
||||
"version": "6.18.37",
|
||||
"hash": "sha256:0maj2ap1m09bxl6a3g9wc65h9sdr6y8rwc5qcqlbavb4wq0d4g58",
|
||||
"lts": true
|
||||
},
|
||||
"7.0": {
|
||||
"version": "7.0.13",
|
||||
"hash": "sha256:04wrz38ldls7pv1yxa1m7p2hqn1731l93xnz93fs7b0nyz8fv09w",
|
||||
"version": "7.0.14",
|
||||
"hash": "sha256:160ggaq9rh50a39gz02fpia8maq85bwxhqlwsc03yafjhjvrk6fy",
|
||||
"lts": false
|
||||
},
|
||||
"7.1": {
|
||||
"version": "7.1.1",
|
||||
"hash": "sha256:0z8x6wafxzc5vkim9jh8wpycdkk9y5bpxgsirmdpyznw84szl5aj",
|
||||
"version": "7.1.2",
|
||||
"hash": "sha256:0gw8nnq6nix9xk2dhb1jwmhnqjayrn3bn2akzg4lgqkvfa9qq69p",
|
||||
"lts": false
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue