-
-
Notifications
You must be signed in to change notification settings - Fork 18
/
flake.nix
54 lines (50 loc) · 1.29 KB
/
flake.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
{
description = "nix derivation for fava-envelope";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs";
flake-utils.url = "github:numtide/flake-utils";
#polar-nur.url = "github:polarmutex/nur";
};
outputs = {
self,
nixpkgs,
flake-utils,
...
} @ inputs:
{}
// (flake-utils.lib.eachSystem [
"aarch64-linux"
"aarch64-darwin"
"x86_64-darwin"
"x86_64-linux"
]
(system: let
pkgs = import nixpkgs {
inherit system;
config.allowUnsupportedSystem = true;
overlays = [
#self.overlay
#polar-nur.overlays.default
];
};
in {
devShell = pkgs.mkShell {
venvDir = "./.venv";
packages = with pkgs; [
pdm
python311
python311Packages.virtualenv
python311Packages.venvShellHook
];
postVenvCreation = ''
unset SOURCE_DATE_EPOCH
pdm install
'';
LD_LIBRARY_PATH = pkgs.lib.makeLibraryPath [
pkgs.stdenv.cc.cc
# Add any missing library needed
# You can use the nix-index package to locate them, e.g. nix-locate -w --top-level --at-root /lib/libudev.so.1
];
};
}));
}