diff options
author | Franz Pletz <fpletz@fnordicwalking.de> | 2019-11-02 18:35:09 +0100 |
---|---|---|
committer | Franz Pletz <fpletz@fnordicwalking.de> | 2019-11-02 18:35:09 +0100 |
commit | 74554ab3b23d8cd7881d49b40cbbca4582d870d6 (patch) | |
tree | 37d2ddb12edfa2acd7c7cc0d0cd5c99a509acf6e /pkgs/os-specific/linux/mstpd | |
parent | 55bbd626b08000f58330fb3a28891aca79e7c850 (diff) |
mstpd: fix build with gcc9
Diffstat (limited to 'pkgs/os-specific/linux/mstpd')
-rw-r--r-- | pkgs/os-specific/linux/mstpd/default.nix | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/pkgs/os-specific/linux/mstpd/default.nix b/pkgs/os-specific/linux/mstpd/default.nix index 96c235c149877..4a7c6282d4c76 100644 --- a/pkgs/os-specific/linux/mstpd/default.nix +++ b/pkgs/os-specific/linux/mstpd/default.nix @@ -1,4 +1,4 @@ -{ stdenv, fetchFromGitHub, autoreconfHook }: +{ stdenv, fetchFromGitHub, fetchpatch, autoreconfHook }: stdenv.mkDerivation rec { pname = "mstpd"; @@ -11,6 +11,14 @@ stdenv.mkDerivation rec { sha256 = "1xkfydxljdnj49p5r3mirk4k146428b6imfc9bkfps9yjn64mkgb"; }; + patches = [ + (fetchpatch { + name = "fix-strncpy-gcc9.patch"; + url = "https://github.com/mstpd/mstpd/commit/d27d7e93485d881d8ff3a7f85309b545edbe1fc6.patch"; + sha256 = "19456daih8l3y6m9kphjr7pj7slrqzbj6yacnlgznpxyd8y4d86y"; + }) + ]; + nativeBuildInputs = [ autoreconfHook ]; configureFlags = [ |