1
0
Fork 0
nix-overlay/flake.nix

63 lines
2.4 KiB
Nix
Raw Normal View History

2021-12-14 17:54:48 +00:00
{
description = "Collection of (useful) tools";
2023-05-10 21:29:38 +00:00
inputs = {
2023-10-05 16:12:34 +00:00
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable-small";
2021-12-14 17:54:48 +00:00
2023-05-10 23:04:05 +00:00
flake-parts.url = "github:hercules-ci/flake-parts";
2023-05-10 21:29:38 +00:00
neovim-flake = {
2024-02-15 10:58:47 +00:00
url = "github:neovim/neovim?dir=contrib";
2023-05-10 21:29:38 +00:00
inputs.nixpkgs.follows = "nixpkgs";
};
};
2023-05-10 23:04:05 +00:00
outputs = inputs@{ flake-parts, ... }:
flake-parts.lib.mkFlake { inherit inputs; } {
systems = [
2021-12-14 17:54:48 +00:00
"aarch64-darwin"
"x86_64-darwin"
2022-07-31 18:41:26 +00:00
"x86_64-linux"
2023-05-10 23:04:05 +00:00
"aarch64-linux"
];
2023-05-10 21:29:38 +00:00
2023-05-10 23:04:05 +00:00
imports = [
flake-parts.flakeModules.easyOverlay
];
2023-05-10 21:29:38 +00:00
2023-05-10 23:04:05 +00:00
perSystem = { inputs', system, config, pkgs, lib, ... }: {
packages =
let
darwinPackages =
if lib.hasSuffix "darwin" system then rec {
cliclick = import ./packages/cliclick.nix { inherit pkgs lib; };
phantomjs = import ./packages/phantomjs.nix { inherit pkgs lib; };
2023-12-20 11:44:46 +00:00
tabnine = import ./packages/tabnine { inherit pkgs lib; };
2023-10-05 16:12:34 +00:00
} else { };
2023-05-10 23:04:05 +00:00
in
{
anonymous-overflow = import ./packages/anonymous-overflow.nix { inherit pkgs lib; };
2023-11-02 15:32:26 +00:00
bulk-downloader-for-reddit = import ./packages/bulk-downloader-for-reddit.nix { inherit pkgs lib; };
2024-02-04 21:45:11 +00:00
discord-downloader-go = import ./packages/discord-downloader-go.nix { inherit pkgs lib; };
2023-05-10 23:04:05 +00:00
fennel-ls = import ./packages/fennel-ls.nix { inherit pkgs lib; };
2023-09-21 14:31:45 +00:00
headscale-ui = import ./packages/headscale-ui.nix { inherit pkgs lib; };
2024-03-31 22:42:19 +00:00
lexical = import ./packages/lexical.nix { inherit pkgs lib; };
2023-10-28 14:30:43 +00:00
neovim-nightly = import ./packages/neovim-nightly.nix { inherit (inputs'.neovim-flake.packages) neovim; inherit pkgs lib; };
2023-05-10 23:04:05 +00:00
q = import ./packages/q.nix { inherit pkgs lib; };
2023-12-28 12:34:17 +00:00
redlib = import ./packages/redlib.nix { inherit pkgs lib; };
2023-08-18 10:36:01 +00:00
rexit = import ./packages/rexit.nix { inherit pkgs lib; };
2023-05-10 23:04:05 +00:00
rimgo = import ./packages/rimgo.nix { inherit pkgs lib; };
2024-01-12 09:53:23 +00:00
tg-archive = import ./packages/tg-archive.nix { inherit pkgs lib; };
2023-05-23 00:04:06 +00:00
vuetorrent = import ./packages/vuetorrent.nix { inherit pkgs lib; };
2023-05-17 22:28:32 +00:00
weewx-proxy = import ./packages/weewx-proxy.nix { inherit pkgs lib; };
2023-05-10 23:04:05 +00:00
} // darwinPackages;
2021-12-14 17:54:48 +00:00
2023-05-10 23:04:05 +00:00
overlayAttrs = config.packages;
};
flake = {
overlay = inputs.self.overlays.default;
};
};
2021-12-14 17:54:48 +00:00
}