-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathflake.nix
More file actions
71 lines (59 loc) · 1.77 KB
/
flake.nix
File metadata and controls
71 lines (59 loc) · 1.77 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
{
description = "figleaf - development and distribution";
inputs = {
devenv.url = "github:cachix/devenv";
flake-parts.url = "github:hercules-ci/flake-parts";
modules.url = "sourcehut:~jcmuller/modules";
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
systems.url = "github:nix-systems/default";
};
nixConfig = {
extra-trusted-public-keys = "devenv.cachix.org-1:w1cLUi8dv3hnoSPGAuibQv+f9TZLr6cv/Hm9XgU50cw=";
extra-substituters = "https://devenv.cachix.org";
};
outputs = inputs @ {...}:
inputs.flake-parts.lib.mkFlake {inherit inputs;} {
debug = true;
imports = [inputs.devenv.flakeModule];
systems = [
"x86_64-linux"
"x86_64-darwin"
"aarch64-darwin"
];
perSystem = {pkgs, ...}: {
formatter = pkgs.alejandra;
devenv.shells.default = {
imports = [inputs.modules.devenvModules.default];
languages = {
nix.enable = true;
ruby = {
enable = true;
package = pkgs.ruby_3_4;
bundler.enable = true;
};
};
packages = with pkgs; [
pkg-config
cmake
libyaml.dev
openssl.dev
];
enterShell = "bundle check || bundle install ";
scripts = {
run-test = {
description = "run tests";
exec = "bundle exec rspec";
};
run-package-artifacts = {
description = "run tests";
exec = "tar jcvf coverage.tar.bz2 coverage";
};
run-lint = {
description = "ensure files are okay";
exec = "bundle exec standardrb";
};
};
};
};
};
}