-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathflake.nix
29 lines (28 loc) · 835 Bytes
/
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
{
inputs = {
flake-utils.url = "github:numtide/flake-utils/v1.0.0";
nixpkgs.url = "github:NixOS/nixpkgs/24.05";
clj-nix.url = "github:jlesquembre/clj-nix";
};
outputs = { self, flake-utils, clj-nix, nixpkgs, ... }:
flake-utils.lib.eachDefaultSystem (system:
{
packages = rec {
default = instant-poll;
instant-poll = clj-nix.lib.mkCljApp {
pkgs = nixpkgs.legacyPackages.${system};
modules = [
{
projectSrc = ./.;
name = "instant-poll";
# This must be the same as `:main` in project.clj
main-ns = "instant-poll.handler";
buildCommand = "lein uberjar";
withLeiningen = true;
}
];
};
};
}
);
}