1
0
Fork 0
nix-overlay/flake.nix

75 lines
2.7 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 = {
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
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 = {
url = "github:neovim/neovim?dir=contrib";
inputs.nixpkgs.follows = "nixpkgs";
};
2023-05-17 22:28:32 +00:00
bdfr-browser-flake = {
url = "github:nifoc/bdfr-browser";
inputs.nixpkgs.follows = "nixpkgs";
inputs.flake-parts.follows = "flake-parts";
};
2023-06-06 14:46:20 +00:00
weewx-proxy-flake = {
url = "github:nifoc/weewx-proxy";
inputs.nixpkgs.follows = "nixpkgs";
inputs.flake-parts.follows = "flake-parts";
};
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
darwinPackages =
if lib.hasSuffix "darwin" system then rec {
agilebits-op = import ./packages/agilebits-op.nix { inherit pkgs lib; };
cliclick = import ./packages/cliclick.nix { inherit pkgs lib; };
liblpeg = import ./packages/liblpeg-darwin.nix { inherit pkgs; };
neovim-nightly = import ./packages/neovim-nightly.nix { inherit (inputs'.neovim-flake.packages) neovim; inherit liblpeg lib; };
phantomjs = import ./packages/phantomjs.nix { inherit pkgs lib; };
} else {
neovim-nightly = import ./packages/neovim-nightly.nix { inherit (inputs'.neovim-flake.packages) neovim; inherit lib; };
};
in
{
anonymous-overflow = import ./packages/anonymous-overflow.nix { inherit pkgs lib; };
fennel-ls = import ./packages/fennel-ls.nix { inherit pkgs lib; };
2023-08-09 00:10:16 +00:00
lexical = import ./packages/lexical.nix { inherit pkgs lib; };
2023-05-10 23:04:05 +00:00
nitter-unstable = import ./packages/nitter-unstable.nix { inherit pkgs lib; };
q = import ./packages/q.nix { inherit pkgs lib; };
rimgo = import ./packages/rimgo.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
bdfr-browser = inputs'.bdfr-browser-flake.packages.default;
2023-06-06 14:46:20 +00:00
weewx-proxy = inputs'.weewx-proxy-flake.packages.default;
2023-05-10 23:04:05 +00:00
website-docs-nifoc-pw = import ./packages/website-docs-nifoc-pw.nix { inherit pkgs; };
} // 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
}