nix-packages/flake.nix

60 lines
1.6 KiB
Nix
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{
description = "Lottes nix packages";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs";
flake-utils.url = "github:DarkKirb/flake-utils";
attic = {
url = "github:zhaofengli/attic";
inputs.nixpkgs.follows = "nixpkgs";
inputs.flake-utils.follows = "flake-utils";
};
flake-compat = {
url = "github:edolstra/flake-compat";
flake = false;
};
mautrix-cleanup = {
url = "github:DarkKirb/mautrix-cleanup";
inputs.nixpkgs.follows = "nixpkgs";
inputs.flake-utils.follows = "flake-utils";
};
};
outputs = {
self,
nixpkgs,
flake-utils,
...
} @ inputs:
flake-utils.lib.eachSystem ["aarch64-darwin" "aarch64-linux" "x86_64-darwin" "x86_64-linux" "riscv64-linux"] (
system: let
pkgs = import nixpkgs {
inherit system;
config.allowUnfree = true;
config.allowUnsupportedSystem = true;
};
inherit (pkgs) lib;
nur = import ./default.nix {inherit pkgs;};
packages = lib.filterAttrs (n: _: n != "overlays" && n != "modules" && n != "lib") nur;
in rec {
formatter = pkgs.alejandra;
devShells.default = pkgs.mkShell {
nativeBuildInputs = with pkgs; [
statix
nix-prefetch
];
};
inherit packages;
inherit (nur) overlays modules lib;
hydraJobs =
if (system == "x86_64-linux") || (system == "aarch64-linux")
then {
inherit packages devShells formatter;
}
else {};
}
);
}