-
Notifications
You must be signed in to change notification settings - Fork 1
/
flake.nix
48 lines (42 loc) · 1.36 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
{
inputs = {
rchitect.url = "github:randy3k/rchitect/v0.3.36";
rchitect.flake = false;
radian.url = "github:randy3k/radian/v0.6.3";
radian.flake = false;
};
outputs = { self, nixpkgs, flake-utils, rchitect, radian }:
flake-utils.lib.eachDefaultSystem (system:
let pkgs = nixpkgs.legacyPackages.${system};
in {
packages = {
rchitect = pkgs.python3Packages.buildPythonPackage {
pname = "rchitect";
version = "0.3.36";
src = rchitect;
preBuild = "export HOME=$TMP";
buildInputs = with pkgs.python3Packages; [ pytest-runner ];
propagatedBuildInputs = with pkgs.python3Packages; [
pkgs.R
cffi
six
];
doCheck = false;
};
radian = pkgs.python3Packages.buildPythonApplication {
pname = "radian";
version = "0.6.3";
src = radian;
preBuild = "export HOME=$TMP";
buildInputs = with pkgs.python3Packages; [ pytest-runner ];
propagatedBuildInputs = with pkgs.python3Packages; [
self.packages.${system}.rchitect
prompt_toolkit
pygments
];
doCheck = false;
};
default = self.packages.${system}.radian;
};
});
}