depot/third_party/nixpkgs/pkgs/development/python-modules/pymupdf/nix-support.patch
Default email e18f6fb5f9 Project import generated by Copybara.
GitOrigin-RevId: 9df2cb074d72ea80ac9fd225b29060c8cf13dd39
2021-08-11 16:56:57 +02:00

17 lines
303 B
Diff

--- a/setup.py
+++ b/setup.py
@@ -36,10 +36,14 @@ LIBRARIES = {
"opensuse": OPENSUSE,
"fedora": FEDORA,
"alpine": ALPINE,
+ "nix": FEDORA,
}
def load_libraries():
+ if os.getenv("NIX_STORE"):
+ return LIBRARIES["nix"]
+
try:
import distro