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";
|
|
|
|
};
|
|
|
|
|
|
|
|
outputs = { self, flake-utils, nixpkgs, nix-pre-commit-hooks }: {
|
2021-07-22 11:14:28 +02:00
|
|
|
overlay = 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
|
2021-08-29 12:09:59 +02:00
|
|
|
pkgs = import nixpkgs {
|
|
|
|
inherit system;
|
|
|
|
overlays = [ self.overlay ];
|
|
|
|
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)
|
2021-05-16 15:05:16 +02:00
|
|
|
VisiCut
|
2021-11-19 15:01:39 +01:00
|
|
|
colorchord2
|
2021-05-13 08:59:01 +02:00
|
|
|
deemix
|
2021-07-17 13:05:04 +02:00
|
|
|
fSpy
|
2021-06-12 11:08:06 +02:00
|
|
|
face_morpher
|
2021-08-11 23:56:43 +02:00
|
|
|
gust_tools
|
2021-08-28 13:40:06 +02:00
|
|
|
hcloud_exporter
|
2022-08-12 23:58:53 +02:00
|
|
|
linuxmotehook2
|
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
|
2021-05-14 18:34:11 +02:00
|
|
|
unxwb
|
2021-12-01 20:59:48 +01:00
|
|
|
vgmstream;
|
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 { };
|
|
|
|
});
|
|
|
|
}
|