-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathflake.nix
63 lines (54 loc) · 2.13 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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
{
description = "Collection of (useful) tools";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable";
flake-parts.url = "github:hercules-ci/flake-parts";
poetry2nix = {
url = "github:nix-community/poetry2nix";
inputs.nixpkgs.follows = "nixpkgs";
};
};
outputs = inputs@{ flake-parts, ... }:
flake-parts.lib.mkFlake { inherit inputs; } {
systems = [
"aarch64-darwin"
"x86_64-darwin"
"x86_64-linux"
"aarch64-linux"
];
imports = [
flake-parts.flakeModules.easyOverlay
];
perSystem = { inputs', system, config, pkgs, lib, ... }: {
packages =
let
inherit (pkgs) callPackage;
poetry2nix = inputs.poetry2nix.lib.mkPoetry2Nix { inherit pkgs; };
darwinPackages =
if lib.hasSuffix "darwin" system then {
cliclick = callPackage ./packages/cliclick.nix { };
phantomjs = callPackage ./packages/phantomjs.nix { };
tabnine = callPackage ./packages/tabnine { };
vfkit = callPackage ./packages/vfkit.nix { };
} else { };
in
{
anonymous-overflow = callPackage ./packages/anonymous-overflow.nix { };
bulk-downloader-for-reddit = callPackage ./packages/bulk-downloader-for-reddit.nix { };
controld = callPackage ./packages/controld.nix { };
discord-downloader-go = callPackage ./packages/discord-downloader-go.nix { };
fennel-ls = callPackage ./packages/fennel-ls.nix { };
headscale-ui = callPackage ./packages/headscale-ui.nix { };
q = callPackage ./packages/q.nix { };
tg-archive = callPackage ./packages/tg-archive.nix { };
vuetorrent = callPackage ./packages/vuetorrent.nix { };
weewx = callPackage ./packages/weewx.nix { inherit poetry2nix; };
weewx-proxy = callPackage ./packages/weewx-proxy.nix { };
} // darwinPackages;
overlayAttrs = config.packages;
};
flake = {
overlay = inputs.self.overlays.default;
};
};
}