Skip to content

Commit

Permalink
Merge pull request NixOS#194211 from flokli/systemd-251.5
Browse files Browse the repository at this point in the history
systemd: 251.4 -> 251.5
  • Loading branch information
flokli committed Oct 3, 2022
2 parents 6cf0e50 + 0247a5b commit 520f8b8
Showing 1 changed file with 17 additions and 16 deletions.
33 changes: 17 additions & 16 deletions pkgs/os-specific/linux/systemd/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ assert withHomed -> withCryptsetup;
let
wantCurl = withRemote || withImportd;
wantGcrypt = withResolved || withImportd;
version = "251.4";
version = "251.5";

# Bump this variable on every (major) version change. See below (in the meson options list) for why.
# command:
Expand All @@ -137,7 +137,7 @@ stdenv.mkDerivation {
owner = "systemd";
repo = "systemd-stable";
rev = "v${version}";
sha256 = "sha256-lfG6flT1k8LZBAdDK+cF9RjmJMkHMJquMjQK3MINFd8=";
sha256 = "sha256-2MEmvFT1D+9v8OazBwjnKc7i/x7i196Eoi8bODk1cM4=";
};

# On major changes, or when otherwise required, you *must* reformat the patches,
Expand Down Expand Up @@ -571,21 +571,22 @@ stdenv.mkDerivation {
];

# { replacement, search, where } -> List[str]
mkSubstitute = { replacement, search, where, ignore ? [] }:
mkSubstitute = { replacement, search, where, ignore ? [ ] }:
map (path: "substituteInPlace ${path} --replace '${search}' \"${replacement}\"") where;
mkEnsureSubstituted = { replacement, search, where, ignore ? [] }:
let
ignore' = lib.concatStringsSep "|" (ignore ++ ["^test" "NEWS"]);
in ''
set +e
search=$(grep '${search}' -r | grep -v "${replacement}" | grep -Ev "${ignore'}")
set -e
if [[ -n "$search" ]]; then
echo "Not all references to '${search}' have been replaced. Found the following matches:"
echo "$search"
exit 1
fi
'';
mkEnsureSubstituted = { replacement, search, where, ignore ? [ ] }:
let
ignore' = lib.concatStringsSep "|" (ignore ++ [ "^test" "NEWS" ]);
in
''
set +e
search=$(grep '${search}' -r | grep -v "${replacement}" | grep -Ev "${ignore'}")
set -e
if [[ -n "$search" ]]; then
echo "Not all references to '${search}' have been replaced. Found the following matches:"
echo "$search"
exit 1
fi
'';
in
''
mesonFlagsArray+=(-Dntp-servers="0.nixos.pool.ntp.org 1.nixos.pool.ntp.org 2.nixos.pool.ntp.org 3.nixos.pool.ntp.org")
Expand Down

0 comments on commit 520f8b8

Please sign in to comment.