-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathflake.nix
47 lines (39 loc) · 1.32 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
{
description = "Server and mpv/web client for syncing media playback.";
inputs = {
flake-utils.url = "github:numtide/flake-utils";
flake-nimble.url = "github:nix-community/flake-nimble";
};
outputs = { self, nixpkgs, flake-utils, flake-nimble }:
flake-utils.lib.eachDefaultSystem (system:
let
overlay = import ./overlay.nix;
pkgs = import nixpkgs { inherit system; overlays = [ flake-nimble.overlay overlay ]; };
in rec {
nixosModules.kinoplex = import ./system/module.nix;
nixosModules.default = nixosModules.kinoplex;
overlays.default = overlay;
packages = flake-utils.lib.flattenTree {
inherit (pkgs.nimPackages) kinoplex;
};
defaultPackage = packages.kinoplex;
apps = {
server = {
type = "app";
program = "${packages.kinoplex}/bin/kino_server";
};
client = {
type = "app";
program = "${packages.kinoplex}/bin/kino_client";
};
telegram-bridge = {
type = "app";
program = "${packages.kinoplex}/bin/kino_telegram";
};
};
devShell = pkgs.mkShell {
nativeBuildInputs = with pkgs; [ nim nimlsp ];
buildInputs = [ pkgs.openssl ];
};
});
}