-
Notifications
You must be signed in to change notification settings - Fork 0
/
flake.nix
50 lines (44 loc) · 1.28 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
48
49
50
{
description = "firefox addons manifest";
inputs = {
##: core
flake-parts.url = "github:hercules-ci/flake-parts";
devshell.url = "github:numtide/devshell";
##: tools
mozilla-addons-to-nix.url = "sourcehut:~rycee/mozilla-addons-to-nix";
##: channels
# NOTE: we need to allow unfree licenses for some of these extensions.
nixpkgs.url = "github:numtide/nixpkgs-unfree";
nixpkgs.inputs.nixpkgs.follows = "nixos-unstable";
nixos-unstable.url = "github:NixOS/nixpkgs/nixos-unstable";
};
outputs =
inputs@{ flake-parts, ... }:
flake-parts.lib.mkFlake { inherit inputs; } {
imports = [
inputs.devshell.flakeModule
./devshells.nix
./src
];
systems = [
"aarch64-linux"
"aarch64-darwin"
"x86_64-darwin"
"x86_64-linux"
];
flake = {
_module.args.lib = inputs.nixpkgs.lib;
};
perSystem =
{ inputs', pkgs, ... }:
{
_module.args.pkgs = inputs'.nixpkgs.legacyPackages;
formatter = pkgs.nixfmt;
# TODO: build all <https://github.com/NixOS/nix/issues/7165>
# packages.all = pkgs.symlinkJoin {
# name = "all";
# paths = with code; [ app wasm ];
# };
};
};
}