-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathflake.nix
41 lines (37 loc) · 1023 Bytes
/
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
{
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
flake-utils.url = "github:numtide/flake-utils";
};
outputs =
{ nixpkgs, flake-utils, ... }:
flake-utils.lib.eachDefaultSystem (
system:
let
pkgs = nixpkgs.legacyPackages.${system};
in
rec {
packages.default = packages.lunar;
packages.lunar = pkgs.buildNpmPackage {
name = "lunar";
buildInputs = [
pkgs.nodejs
pkgs.typescript
];
src = pkgs.lib.cleanSource ./.;
npmDepsHash = "sha256-mu9Jcay66gic6b+UWoPzEOT+FfOWVvMRtq70EvUQeDo=";
};
}
);
# {{{ Caching and whatnot
nixConfig = {
# extra-substituters = [
# "erratic-gate.cachix.org-1:Ijiu/v//aVpKO4xBqV+2AM2s2uQYOnGCfoj9fYRXxtk" # I think I need this for neovim-nightly?
# ];
#
# extra-trusted-public-keys = [
# "nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
# ];
};
# }}}
}