-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathflake.nix
More file actions
69 lines (62 loc) · 1.69 KB
/
Copy pathflake.nix
File metadata and controls
69 lines (62 loc) · 1.69 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
{
inputs = {
utils.url = "github:numtide/flake-utils";
nixpkgs.url = "github:NixOS/nixpkgs/nixos-25.11";
rUtils.url = "git+https://scm.openanalytics.eu/git/oa-r-utils-nix.git";
};
outputs =
{
self,
nixpkgs,
utils,
rUtils,
}:
utils.lib.eachDefaultSystem (
system:
let
pkgs = import nixpkgs {
inherit system;
overlays = [
(import ./overlay.nix { inherit rUtils; })
];
};
editbl = rUtils.lib.buildRPackage {
inherit pkgs;
src = self + "/editbl";
};
extrasNotInDescription = [
pkgs.rPackages.devtools
pkgs.rPackages.testthat
pkgs.rPackages.editbl
pkgs.rPackages.qpdf
];
in
{
devShells = {
default = rUtils.lib.mkRShell {
inherit pkgs;
shell_name = "default";
# Using your DESCRIPTION file packages will automatically be installed e.g.:
descriptionPath = editbl/DESCRIPTION;
# If you want to exclude the Suggests packages:
excludeSuggests = false;
packages = extrasNotInDescription;
# Here you can add commands that will run everytime you enter the
# development shell
shellHook = ''
'';
};
test = rUtils.lib.mkRShell {
inherit pkgs;
shell_name = "test";
packages = extrasNotInDescription ++ [
editbl
];
shellHook = ''
'';
};
};
packages.default = editbl;
}
);
}