-
Notifications
You must be signed in to change notification settings - Fork 7
/
requirements.nix
49 lines (49 loc) · 1.11 KB
/
requirements.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
let
inherit (import <nixpkgs> { }) fetchFromGitHub;
nixpkgs = fetchFromGitHub {
owner = "NixOS";
repo = "nixpkgs";
rev = "nixos-21.05";
sha256 = "sha256-13B6tgKXygEBWxwj9+vIjuWyzwNF1XPLjJiFAvE7A88=";
};
pkgs = import nixpkgs { };
mach-nix = import
(builtins.fetchGit {
url = "https://github.com/DavHau/mach-nix/";
rev = "31b21203a1350bff7c541e9dfdd4e07f76d874be";
})
{
python = "python39";
pypiDataRev = "43f5b07a0b1614ee80723b2ad2f8e29a7b246353";
pypiDataSha256 = "sha256:0psv5w679bgc90ga13m3pz518sw4f35by61gv7c64yl409p70rf9";
};
pythonEnv = mach-nix.mkPython rec {
requirements = builtins.readFile ./requirements.txt;
providers = {
_defualt = "wheel";
};
packagesExtra = [
./config_parser
];
};
deps = {
python = pythonEnv;
runtime = [
pkgs.ffmpeg
pkgs.colmapWithCuda
];
docs = [
pkgs.texlive.combined.scheme-full
];
devel = [
pkgs.meshlab
pkgs.cloudcompare
];
};
requirements = {
deps = deps;
mach-nix = mach-nix;
pkgs = pkgs;
};
in
requirements