This repository has been archived on 2024-10-13. You can view files and clone it, but cannot push or open issues or pull requests.
nix-packages/flake.nix

43 lines
974 B
Nix
Raw Normal View History

2022-06-11 12:32:09 +00:00
{
description = "Lottes nix packages";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs";
flake-utils.url = "github:numtide/flake-utils";
2022-06-11 12:55:50 +00:00
# Source files for packages
clean-s3-cache.url = "git+https://gist.github.com/DarkKirb/533e9e8b9b6dd1badf9b103b4285dc4e";
clean-s3-cache.flake = false;
2022-06-11 12:32:09 +00:00
};
2022-06-11 12:55:50 +00:00
outputs =
{ self
, nixpkgs
, flake-utils
, ...
} @ inputs:
flake-utils.lib.eachSystem [ "aarch64-linux" "x86_64-linux" ] (
system:
let
pkgs = import nixpkgs { inherit system; };
in
rec {
2022-06-11 12:32:09 +00:00
formatter = pkgs.alejandra;
devShells.default = pkgs.mkShell {
nativeBuildInputs = with pkgs; [
statix
];
};
2022-06-11 12:36:59 +00:00
2022-06-11 12:55:50 +00:00
packages = pkgs.lib.lists.foldl (a: b: a // b) { } [
(pkgs.callPackage ./scripts/clean-s3-cache.nix { inherit inputs; })
];
2022-06-11 12:36:59 +00:00
hydraJobs = {
inherit packages devShells;
};
2022-06-11 12:32:09 +00:00
}
);
}