-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathflake.nix
36 lines (30 loc) · 866 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
{
description = "Zotero on Nix";
inputs = {
nixpkgs.url = "nixpkgs/nixos-24.11";
flake-compat.url = "github:edolstra/flake-compat";
utils.url = "flake-utils";
};
outputs =
{ nixpkgs, utils, ... }:
utils.lib.eachSystem [ "aarch64-linux" "x86_64-linux" ] (
system:
let
pkgs = import nixpkgs { inherit system; };
callPackage = pkgs.lib.customisation.callPackageWith (pkgs // ours);
ours = builtins.listToAttrs (
builtins.map (path: {
name = path;
value = callPackage (./pkgs + "/${path}") { };
}) (builtins.attrNames (builtins.readDir ./pkgs))
);
in
rec {
packages = ours // rec {
default = zotero;
zotero = pkgs.wrapFirefox ours.zotero-unwrapped { };
};
checks = packages;
}
);
}