rtkit: Add patch to fix format string errors
During the last staging merge I assume that we turned on
-Werror=format-security by default (haven't checked in-depth though),
which actually is a good thing.
This causes the rtkit build to now fail, so I took a patch from Debian
to fix these issues.
Signed-off-by: aszlig <aszlig@nix.build>
commita7f600b2c26e503efc56bd7fa2a2f0fe13386584
authoraszlig <aszlig@nix.build>
dateThu 12 Apr 2018, 16:02 (9 years ago)
parentf386994
pkgs/os-specific/linux/rtkit/default.nix+6
@@ -24,6 +24,12 @@ stdenv.mkDerivation rec {
2424 url = "http://git.0pointer.net/rtkit.git/patch/?id=88d4082ef6caf6b071d749dca1c50e7edde914cc";
2525 sha256 = "0hp1blbi359qz8fmr6nj4w9yc0jf3dd176f8pn25wdj38n13qkix";
2626 })
27+
28+ # Fix format string errors due to -Werror=format-security
29+ (fetchpatch {
30+ url = "https://sources.debian.org/data/main/r/rtkit/0.11-6/debian/patches/0006-fix-format-strings.patch";
31+ sha256 = "09mr89lh16jvz6cqw00zmh0xk919bjfhjkvna1czwmafwy9p7kgp";
32+ })
2733 ];
2834
2935 nativeBuildInputs = [ pkgconfig ];