forked from srid/neuron
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathflake.nix
29 lines (24 loc) · 820 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
{
description = "Future-proof note-taking and publishing based on Zettelkasten";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/123db833485edf8df83f95ef2888113390768686";
flake-utils.url = "github:numtide/flake-utils";
flake-compat = {
url = "github:edolstra/flake-compat";
flake = false;
};
};
outputs = { self, nixpkgs, flake-utils, ... }:
flake-utils.lib.eachDefaultSystem (system:
let
pkgs = import nixpkgs { inherit system; };
project = import ./project.nix { inherit pkgs; };
in
rec {
packages = { neuron = project.neuron; };
defaultPackage = packages.neuron;
apps = { neuron = flake-utils.lib.mkApp { drv = packages.neuron; }; };
defaultApp = apps.neuron;
devShell = project.shell;
});
}