1
0
Fork 0
nix-overlay/flake.nix

63 lines
2.2 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
inherit (pkgs) callPackage;
2023-05-10 23:04:05 +00:00
darwinPackages =
if lib.hasSuffix "darwin" system then {
cliclick = callPackage ./packages/cliclick.nix { };
phantomjs = callPackage ./packages/phantomjs.nix { };
tabnine = callPackage ./packages/tabnine { };
2023-10-05 16:12:34 +00:00
} else { };
2023-05-10 23:04:05 +00:00
in
{
anonymous-overflow = callPackage ./packages/anonymous-overflow.nix { };
bulk-downloader-for-reddit = callPackage ./packages/bulk-downloader-for-reddit.nix { };
discord-downloader-go = callPackage ./packages/discord-downloader-go.nix { };
fennel-ls = callPackage ./packages/fennel-ls.nix { };
headscale-ui = callPackage ./packages/headscale-ui.nix { };
lexical = callPackage ./packages/lexical.nix { };
neovim-nightly = callPackage ./packages/neovim-nightly.nix { inherit (inputs'.neovim-flake.packages) neovim; };
q = callPackage ./packages/q.nix { };
redlib = callPackage ./packages/redlib.nix { };
rexit = callPackage ./packages/rexit.nix { };
tg-archive = callPackage ./packages/tg-archive.nix { };
vuetorrent = callPackage ./packages/vuetorrent.nix { };
weewx-proxy = callPackage ./packages/weewx-proxy.nix { };
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
}