2022-06-11 12:32:09 +00:00
|
|
|
|
{
|
|
|
|
|
description = "Lotte’s nix packages";
|
|
|
|
|
|
|
|
|
|
inputs = {
|
2022-07-08 10:46:38 +00:00
|
|
|
|
nixpkgs.url = "github:NixOS/nixpkgs";
|
2022-06-11 12:32:09 +00:00
|
|
|
|
flake-utils.url = "github:numtide/flake-utils";
|
2023-01-16 09:02:58 +00:00
|
|
|
|
attic = {
|
|
|
|
|
url = "github:zhaofengli/attic";
|
2023-02-08 20:05:09 +00:00
|
|
|
|
#inputs.nixpkgs.follows = "nixpkgs";
|
2023-01-16 09:02:58 +00:00
|
|
|
|
inputs.flake-utils.follows = "flake-utils";
|
|
|
|
|
};
|
|
|
|
|
flake-compat = {
|
|
|
|
|
url = "github:edolstra/flake-compat";
|
|
|
|
|
flake = false;
|
|
|
|
|
};
|
2022-06-11 12:32:09 +00:00
|
|
|
|
};
|
|
|
|
|
|
2022-06-13 05:53:33 +00:00
|
|
|
|
outputs = {
|
|
|
|
|
self,
|
|
|
|
|
nixpkgs,
|
|
|
|
|
flake-utils,
|
|
|
|
|
...
|
|
|
|
|
} @ inputs:
|
2022-11-27 14:06:17 +00:00
|
|
|
|
flake-utils.lib.eachSystem ["aarch64-darwin" "aarch64-linux" "x86_64-darwin" "x86_64-linux" "riscv64-linux"] (
|
2022-06-13 05:53:33 +00:00
|
|
|
|
system: let
|
2022-07-03 09:58:04 +00:00
|
|
|
|
pkgs = import nixpkgs {
|
|
|
|
|
inherit system;
|
2022-09-25 13:57:21 +00:00
|
|
|
|
config.allowUnfree = true;
|
2022-11-28 13:33:03 +00:00
|
|
|
|
config.allowUnsupportedSystem = true;
|
2022-07-03 09:58:04 +00:00
|
|
|
|
};
|
2022-09-25 13:06:44 +00:00
|
|
|
|
inherit (pkgs) lib;
|
|
|
|
|
nur = import ./default.nix {inherit pkgs;};
|
|
|
|
|
packages = lib.filterAttrs (n: _: n != "overlays" && n != "modules" && n != "lib") nur;
|
2022-06-13 05:53:33 +00:00
|
|
|
|
in rec {
|
2022-06-11 12:32:09 +00:00
|
|
|
|
formatter = pkgs.alejandra;
|
|
|
|
|
|
|
|
|
|
devShells.default = pkgs.mkShell {
|
|
|
|
|
nativeBuildInputs = with pkgs; [
|
|
|
|
|
statix
|
2022-08-18 08:28:31 +00:00
|
|
|
|
nix-prefetch
|
2022-06-11 12:32:09 +00:00
|
|
|
|
];
|
|
|
|
|
};
|
2022-06-11 12:36:59 +00:00
|
|
|
|
|
2022-09-25 13:06:44 +00:00
|
|
|
|
inherit packages;
|
|
|
|
|
inherit (nur) overlays modules lib;
|
2022-06-11 12:36:59 +00:00
|
|
|
|
|
2022-06-18 07:56:50 +00:00
|
|
|
|
hydraJobs =
|
2022-11-28 13:33:03 +00:00
|
|
|
|
if (system == "x86_64-linux") || (system == "aarch64-linux") || (system == "riscv64-linux")
|
2022-06-18 07:56:50 +00:00
|
|
|
|
then {
|
2022-07-03 09:58:04 +00:00
|
|
|
|
inherit packages devShells formatter;
|
2022-06-18 07:56:50 +00:00
|
|
|
|
}
|
|
|
|
|
else {};
|
2022-06-11 12:32:09 +00:00
|
|
|
|
}
|
|
|
|
|
);
|
|
|
|
|
}
|