-
Notifications
You must be signed in to change notification settings - Fork 0
/
flake.nix
81 lines (79 loc) · 2.38 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
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
{
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
flake-utils.url = "github:numtide/flake-utils";
clj-nix.url = "github:jlesquembre/clj-nix";
};
outputs =
{
self,
nixpkgs,
flake-utils,
clj-nix,
}:
flake-utils.lib.eachDefaultSystem (
system:
let
pkgs = import nixpkgs {
inherit system;
overlays = [
clj-nix.overlays.default
self.overlays."${system}"
];
};
in
{
overlays = final: prev: {
datomic-pro = pkgs.callPackage ./pkgs/datomic-pro.nix { };
datomic-pro-peer = pkgs.callPackage ./pkgs/datomic-pro-peer.nix { };
datomic-pro-container = pkgs.callPackage ./pkgs/datomic-pro-container-image.nix {
imageTag = final.datomic-pro.version;
};
datomic-pro-container-unstable = pkgs.callPackage ./pkgs/datomic-pro-container-image.nix {
imageTag = "unstable";
};
datomic-generate-properties = pkgs.callPackage ./pkgs/datomic-generate-properties.nix { };
};
packages = {
default = self.packages.${system}.datomic-pro;
datomic-pro = pkgs.datomic-pro;
datomic-pro-peer = pkgs.datomic-pro-peer;
datomic-pro-container = pkgs.datomic-pro-container;
datomic-pro-container-unstable = pkgs.datomic-pro-container-unstable;
datomic-generate-properties = pkgs.datomic-generate-properties;
};
nixosModules = {
datomic-pro = import ./nixos-modules/datomic-pro.nix;
datomic-console = import ./nixos-modules/datomic-console.nix;
};
checks = {
# A test of the NixOS module that runs in a VM
moduleTest = import ./tests/nixos-module.nix {
inherit
system
pkgs
nixpkgs
self
;
};
# A test of the container image that runs in a VM
containerImageTest = import ./tests/container-image.nix {
inherit
system
pkgs
nixpkgs
self
;
};
};
devShells.default = pkgs.mkShell {
buildInputs = [
pkgs.skopeo
pkgs.babashka
pkgs.dive
pkgs.gnumake
];
};
}
);
}