-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdefault.nix
More file actions
97 lines (84 loc) · 2.15 KB
/
Copy pathdefault.nix
File metadata and controls
97 lines (84 loc) · 2.15 KB
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
let
pkgs = import (fetchTarball "https://github.com/rstats-on-nix/nixpkgs/archive/2025-08-04.tar.gz") {};
rpkgs = builtins.attrValues {
inherit (pkgs.rPackages)
quarto
reticulate
rix
;
};
pyconf = builtins.attrValues {
inherit (pkgs.python313Packages)
pandas
pip
polars
pyarrow
pytest
scikit-learn
;
};
tex = (pkgs.texlive.combine {
inherit (pkgs.texlive)
scheme-small
amsmath
framed
fvextra
environ
fontawesome5
orcidlink
pdfcol
tcolorbox
tikzfill
;
});
system_packages = builtins.attrValues {
inherit (pkgs)
R
glibcLocalesUtf8
quarto
uv
;
};
github_pkgs = [
(pkgs.rPackages.buildRPackage {
name = "myPackage";
src = pkgs.fetchgit {
url = "https://github.com/b-rodrigues/myPackage";
branchName = "master";
rev = "e9d9129de3047c1ecce26d09dff429ec078d4dae";
sha256 = "sha256-u/tIo9L+S12ssGNlQu7AVHG5W5OTpXZ+rHn1Pz6RIKs=";
};
propagatedBuildInputs = builtins.attrValues {
inherit (pkgs.rPackages)
dplyr
janitor
rlang;
};
})
];
pyclean = pkgs.python313Packages.buildPythonPackage rec {
pname = "pyclean";
version = "0.1.0";
src = pkgs.fetchgit {
url = "https://github.com/b-rodrigues/pyclean";
rev = "174d4d482d400536bb0d987a3e25ae80cd81ef3c";
sha256 = "sha256-xTYydkuduPpZsCXE2fv5qZCnYYCRoNFpV7lQBM3LMSg=";
};
pyproject = true;
propagatedBuildInputs = [ pkgs.python313Packages.pandas pkgs.python313Packages.setuptools ];
# Add more dependencies to propagatedBuildInputs as needed
};
in
pkgs.mkShell {
LOCALE_ARCHIVE = if pkgs.system == "x86_64-linux" then "${pkgs.glibcLocalesUtf8}/lib/locale/locale-archive" else "";
LANG = "en_US.UTF-8";
LC_ALL = "en_US.UTF-8";
LC_TIME = "en_US.UTF-8";
LC_MONETARY = "en_US.UTF-8";
LC_PAPER = "en_US.UTF-8";
LC_MEASUREMENT = "en_US.UTF-8";
buildInputs = [ rpkgs pyconf pyclean tex system_packages github_pkgs ];
shellHook = ''
export PYTHONPATH=$PWD/pyclean/src:$PYTHONPATH
'';
}