-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathflake.nix
More file actions
44 lines (39 loc) · 1.1 KB
/
flake.nix
File metadata and controls
44 lines (39 loc) · 1.1 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
{
description = "Secure Distributed Chat";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-25.11";
flake-parts.url = "github:hercules-ci/flake-parts";
};
outputs =
inputs@{
flake-parts,
...
}:
flake-parts.lib.mkFlake { inherit inputs; } {
systems = [
"x86_64-linux"
# "aarch64-linux"
# "x86_64-darwin"
# "aarch64-darwin"
];
perSystem =
{ pkgs, self', ... }:
{
# Package build
packages.default = pkgs.callPackage ./nix/default.nix { };
# Executables
apps."gratcli" = {
type = "app";
program = "${self'.packages.default}/bin/gratcli";
meta.description = "CLI to interact with the chat";
};
apps."gratserver" = {
type = "app";
program = "${self'.packages.default}/bin/gratserver";
meta.description = "Chat daemon running in the background";
};
# Development environment
devShells.default = import ./nix/shell.nix { inherit pkgs; };
};
};
}