-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathflake.nix
37 lines (36 loc) · 1.07 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
{
description = "Zotero-Remarkable";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
utils.url = "github:numtide/flake-utils";
};
outputs = { self, nixpkgs, utils }:
let
devShell = {mkShell, rmapi}:
mkShell {
buildINputs = [
rmapi
];
};
localOverlay = final: prev: {
zotero-remarkable = prev.callPackage ./zotero-remarkable.nix { };
devShell = prev.callPackage devShell { };
};
pkgsForSystem = system: import nixpkgs {
overlays = [
localOverlay
];
inherit system;
};
in utils.lib.eachSystem [ "x86_64-linux" "aarch64-linux" "x86_64-darwin" ] (system: rec {
legacyPackages = pkgsForSystem system;
packages = utils.lib.flattenTree {
inherit (legacyPackages) devShell zotero-remarkable;
};
defaultPackage = packages.zotero-remarkable;
apps.zotero-remarkable = utils.lib.mkApp { drv = packages.zotero-remarkable; };
}) // {
overlay = localOverlay;
overlays = [];
};
}