1
0
Fork 0
nix-overlay/flake.nix

64 lines
2.1 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";
2024-06-29 21:11:25 +00:00
poetry2nix = {
url = "github:nix-community/poetry2nix";
inputs.nixpkgs.follows = "nixpkgs";
};
2023-05-10 21:29:38 +00:00
};
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;
2024-06-29 21:11:25 +00:00
poetry2nix = inputs.poetry2nix.lib.mkPoetry2Nix { inherit pkgs; };
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 { };
2024-06-09 17:36:09 +00:00
vfkit = callPackage ./packages/vfkit.nix { };
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 { };
2024-07-26 15:41:48 +00:00
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 { };
2024-06-29 21:11:25 +00:00
weewx = callPackage ./packages/weewx.nix { inherit poetry2nix; };
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
}