nixpkgs-overlay/flake.nix

86 lines
2.3 KiB
Nix
Raw Permalink Normal View History

2021-05-13 08:51:44 +02:00
{
inputs = {
flake-utils.url = "github:numtide/flake-utils";
nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable";
nix-pre-commit-hooks.url = "github:cachix/pre-commit-hooks.nix/master";
nix-pre-commit-hooks.inputs.flake-utils.follows = "flake-utils";
nix-pre-commit-hooks.inputs.nixpkgs.follows = "nixpkgs";
2023-04-23 17:18:44 +02:00
poetry2nix.url = "github:nix-community/poetry2nix";
poetry2nix.inputs.flake-utils.follows = "flake-utils";
poetry2nix.inputs.nixpkgs.follows = "nixpkgs";
2021-05-13 08:51:44 +02:00
};
2023-04-23 17:18:44 +02:00
outputs = { self, flake-utils, nixpkgs, nix-pre-commit-hooks, poetry2nix }: {
2023-12-02 15:35:32 +01:00
overlays.default = import ./default.nix;
2021-08-28 13:40:28 +02:00
nixosModules =
let
inherit (nixpkgs) lib;
in
{
hcloud_exporter.imports = lib.singleton ./hcloud_exporter/module.nix;
};
2021-05-13 08:51:44 +02:00
} // flake-utils.lib.eachDefaultSystem (system:
let
pkgs = import nixpkgs {
inherit system;
2023-12-02 15:35:32 +01:00
overlays = [ self.overlays.default poetry2nix.overlays.default ]; # FIXME: remove poetry2nix when newer version is in nixpkgs
config.allowUnfree = true;
};
2021-05-13 08:51:44 +02:00
lib = pkgs.lib;
in
rec {
checks = {
pre-commit-check = nix-pre-commit-hooks.lib.${system}.run {
src = ./.;
hooks = {
nixpkgs-fmt.enable = true;
};
};
};
devShell = pkgs.mkShell {
shellHook = checks.pre-commit-check.shellHook;
};
packages = lib.filterAttrs
(n: v: lib.elem system v.meta.platforms)
2021-05-15 14:05:10 +02:00
(flake-utils.lib.flattenTree {
2021-05-13 08:56:01 +02:00
inherit (pkgs)
VisiCut
2023-01-22 15:03:39 +01:00
afancontrol
2023-04-23 17:18:44 +02:00
bandcamp-downloader
colorchord2
fSpy
face_morpher
2021-08-11 23:56:43 +02:00
gust_tools
hcloud_exporter
2022-08-12 23:58:53 +02:00
linuxmotehook2
2023-10-01 00:38:07 +02:00
listenbrainz-content-resolver
2024-01-01 15:49:58 +01:00
liquidsfz
2024-04-12 17:01:46 +02:00
mdbook-svgbob
2021-10-24 17:52:08 +02:00
netstick
2021-07-21 20:32:47 +02:00
nsz
2021-08-08 11:29:50 +02:00
playgsf
2021-05-13 09:41:26 +02:00
textidote
2023-03-06 21:57:54 +01:00
unxwb
2023-06-17 10:59:29 +02:00
wa-crypt-tools
2023-03-06 21:57:54 +01:00
whisper_cpp;
2021-05-15 14:05:10 +02:00
mpvScripts = lib.recurseIntoAttrs {
inherit (pkgs.mpvScripts)
pitchcontrol;
};
});
2021-05-13 08:51:44 +02:00
# My hydra only has x86_64-linux builders
hydraJobs =
if lib.elem system [ "x86_64-linux" ]
then packages
else { };
});
}