meson: fix building with python 3.7

This commit is contained in:
Frederik Rietdijk 2018-11-04 08:46:30 +01:00
parent 64e19fdeda
commit 64d50a0099

View file

@ -1,4 +1,4 @@
{ lib, python3Packages, stdenv, writeTextDir, substituteAll }:
{ lib, python3Packages, stdenv, writeTextDir, substituteAll, fetchpatch }:
python3Packages.buildPythonApplication rec {
version = "0.46.1";
@ -41,6 +41,12 @@ python3Packages.buildPythonApplication rec {
src = ./fix-rpath.patch;
inherit (builtins) storeDir;
})
# Support Python 3.7. This is part of 0.47 and 0.48.1.
(fetchpatch {
url = https://github.com/mesonbuild/meson/commit/a87496addd9160300837aa50193f4798c6f1d251.patch;
sha256 = "1jfn9dgib5bc8frcd65cxn3fzhp19bpbjadxjkqzbjk1v4hdbl88";
})
];
setupHook = ./setup-hook.sh;