mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-21 05:04:00 +00:00
18 lines
303 B
Diff
18 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
|
||
|
|