-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathflake.nix
More file actions
33 lines (25 loc) · 680 Bytes
/
flake.nix
File metadata and controls
33 lines (25 loc) · 680 Bytes
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
{
description = "Twilight Struggle Counter";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable";
};
outputs = { self, nixpkgs }:
let
pkgs = nixpkgs.legacyPackages.x86_64-linux;
start = {
type = "app";
program = (pkgs.writeShellScript "sonos-start" ''
${pkgs.elixir}/bin/iex -S mix phx.server
'').outPath;
};
in with pkgs; {
# nix run .#start
apps.x86_64-linux.default = start;
apps.x86_64-linux.start = start;
# nix develop
devShells.x86_64-linux.default = pkgs.mkShell {
name = "ts-shell";
packages = with pkgs; [ elixir elixir-ls inotify-tools sqlite ];
};
};
}