diff options
| author | Doron Behar <doron.behar@gmail.com> | 2021-10-24 12:43:33 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-10-24 12:43:33 +0000 |
| commit | cc5c8513567060ff69483c4d4d422f08a27770cc (patch) | |
| tree | dc22d675a93bd3c76a7d9bf30d205b87be204ef0 /pkgs/development/python-modules/python-magic | |
| parent | e3eaad4c0b7860d0227ef34176b9195030ebe5fd (diff) | |
| parent | 483b98331b4ec5556bc1fc1014788e9458a12aa1 (diff) | |
Merge pull request #142734 from trofi/fix-python_magic
Diffstat (limited to 'pkgs/development/python-modules/python-magic')
| -rw-r--r-- | pkgs/development/python-modules/python-magic/default.nix | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/python-magic/default.nix b/pkgs/development/python-modules/python-magic/default.nix index 02f1cc691522..d8a0f638d968 100644 --- a/pkgs/development/python-modules/python-magic/default.nix +++ b/pkgs/development/python-modules/python-magic/default.nix @@ -3,6 +3,7 @@ , python , buildPythonPackage , fetchFromGitHub +, fetchpatch , substituteAll , file , glibcLocales @@ -20,6 +21,13 @@ buildPythonPackage rec { }; patches = [ + # pull upstream patch to support file-5.41 + (fetchpatch { + name = "file-5.41-compat.patch"; + url = "https://github.com/ahupp/python-magic/commit/0ae7e7ceac0e80e03adc75c858bb378c0427331a.patch"; + sha256 = "0vclaamb56nza1mcy88wjbkh81hnish2gzvl8visa2cknhgdmk50"; + }) + (substituteAll { src = ./libmagic-path.patch; libmagic = "${file}/lib/libmagic${stdenv.hostPlatform.extensions.sharedLibrary}"; |
