mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-07-14 06:00:33 +03:00
systemd: apply patches from Debian
There are some security fixes among those.
This commit is contained in:
parent
587c3774ab
commit
179b8146e6
1 changed files with 17 additions and 1 deletions
|
@ -1,4 +1,4 @@
|
||||||
{ stdenv, lib, fetchFromGitHub, fetchpatch, pkgconfig, intltool, gperf, libcap, kmod
|
{ stdenv, lib, fetchFromGitHub, fetchpatch, fetchurl, pkgconfig, intltool, gperf, libcap, kmod
|
||||||
, xz, pam, acl, libuuid, m4, utillinux, libffi
|
, xz, pam, acl, libuuid, m4, utillinux, libffi
|
||||||
, glib, kbd, libxslt, coreutils, libgcrypt, libgpgerror, libidn2, libapparmor
|
, glib, kbd, libxslt, coreutils, libgcrypt, libgpgerror, libidn2, libapparmor
|
||||||
, audit, lz4, bzip2, libmicrohttpd, pcre2
|
, audit, lz4, bzip2, libmicrohttpd, pcre2
|
||||||
|
@ -30,6 +30,22 @@ in stdenv.mkDerivation rec {
|
||||||
sha256 = "1xci0491j95vdjgs397n618zii3sgwnvanirkblqqw6bcvcjvir1";
|
sha256 = "1xci0491j95vdjgs397n618zii3sgwnvanirkblqqw6bcvcjvir1";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
prePatch = let
|
||||||
|
# Upstream's maintenance branches are still too intrusive:
|
||||||
|
# https://github.com/systemd/systemd-stable/tree/v239-stable
|
||||||
|
patches-deb = fetchurl {
|
||||||
|
# When the URL disappears, it typically means that Debian has new patches
|
||||||
|
# (probably security) and updating to new tarball will apply them as well.
|
||||||
|
name = "systemd-debian-patches.tar.xz";
|
||||||
|
url = mirror://debian/pool/main/s/systemd/systemd_239-11~bpo9+1.debian.tar.xz;
|
||||||
|
sha256 = "136f6p4jbi4z94mf4g099dfcacwka8jwhza0wxxw2q5l5q3xiysh";
|
||||||
|
};
|
||||||
|
# Note that we skip debian-specific patches, i.e. ./debian/patches/debian/*
|
||||||
|
in ''
|
||||||
|
tar xf ${patches-deb}
|
||||||
|
patches="$patches $(cat debian/patches/series | grep -v '^debian/' | sed 's|^|debian/patches/|')"
|
||||||
|
'';
|
||||||
|
|
||||||
outputs = [ "out" "lib" "man" "dev" ];
|
outputs = [ "out" "lib" "man" "dev" ];
|
||||||
|
|
||||||
nativeBuildInputs =
|
nativeBuildInputs =
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue