-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathflake.nix
More file actions
61 lines (55 loc) · 1.51 KB
/
Copy pathflake.nix
File metadata and controls
61 lines (55 loc) · 1.51 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
{
description = "TaurusViewer — a lightweight, keyboard-driven document viewer built with Tauri";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
nix-darwin = {
url = "github:nix-darwin/nix-darwin/master";
inputs.nixpkgs.follows = "nixpkgs";
};
};
outputs =
{
self,
nixpkgs,
nix-darwin,
...
}:
let
systems = [ "aarch64-darwin" ];
forEachSystem = nixpkgs.lib.genAttrs systems;
pkgsFor = system: import nixpkgs { inherit system; };
in
{
packages = forEachSystem (
system:
let
pkgs = pkgsFor system;
in
{
default = pkgs.callPackage ./nix/package.nix { };
}
);
devShells = forEachSystem (
system:
let
pkgs = pkgsFor system;
in
{
default = pkgs.callPackage ./nix/shell.nix { };
}
);
formatter = forEachSystem (system: (pkgsFor system).nixfmt-rfc-style);
# `darwinModules.default` wires `programs.taurus-viewer.enable` into a
# nix-darwin system configuration, e.g.:
#
# inputs.taurus-viewer.url = "github:sheepla/taurus-viewer";
# # ...
# darwinConfigurations.<host> = nix-darwin.lib.darwinSystem {
# modules = [
# inputs.taurus-viewer.darwinModules.default
# { programs.taurus-viewer.enable = true; }
# ];
# };
darwinModules.default = import ./nix/darwin-module.nix self;
};
}