-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathflake.nix
More file actions
61 lines (55 loc) · 1.5 KB
/
flake.nix
File metadata and controls
61 lines (55 loc) · 1.5 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
{
# Pre-built moq binaries so you don't have to compile from source.
# Run `cachix use kixelated` to avoid the trust prompt.
nixConfig = {
extra-substituters = [ "https://kixelated.cachix.org" ];
extra-trusted-public-keys = [ "kixelated.cachix.org-1:CmFcV0lyM6KuVM2m9mih0q4SrAa0XyCsiM7GHrz3KKk=" ];
};
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
flake-utils.url = "github:numtide/flake-utils";
rust-overlay.url = "github:oxalica/rust-overlay";
moq = {
url = "github:moq-dev/moq";
inputs.nixpkgs.follows = "nixpkgs";
};
};
outputs =
{
self,
nixpkgs,
flake-utils,
rust-overlay,
moq,
}:
flake-utils.lib.eachDefaultSystem (
system:
let
pkgs = import nixpkgs {
inherit system;
overlays = [ rust-overlay.overlays.default ];
};
in
{
devShells.default = pkgs.mkShell {
nativeBuildInputs = with pkgs; [
cargo-sort
cargo-shear
cargo-edit
cargo-tauri
bun
just
rsync
# MoQ relay and token CLI for local development
moq.packages.${system}.moq-relay
moq.packages.${system}.moq-token-cli
# Icon generation tools
imagemagick
libicns # provides png2icns
];
};
# Keep the old attribute for backwards compatibility
devShell = self.devShells.${system}.default;
}
);
}