2024-11-16 16:07:17 +01:00
|
|
|
{
|
|
|
|
description = "Description for the project";
|
|
|
|
|
|
|
|
inputs = {
|
|
|
|
flake-parts.url = "github:hercules-ci/flake-parts";
|
|
|
|
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
|
|
|
treefmt-nix.url = "github:numtide/treefmt-nix";
|
|
|
|
treefmt-nix.inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
};
|
|
|
|
|
|
|
|
outputs =
|
|
|
|
inputs@{ flake-parts, ... }:
|
|
|
|
flake-parts.lib.mkFlake { inherit inputs; } {
|
|
|
|
imports = [
|
|
|
|
./nix/formatter.nix
|
|
|
|
./nix/devshells.nix
|
|
|
|
];
|
|
|
|
systems = [
|
|
|
|
"x86_64-linux"
|
|
|
|
"aarch64-linux"
|
|
|
|
"aarch64-darwin"
|
|
|
|
"x86_64-darwin"
|
|
|
|
];
|
|
|
|
perSystem =
|
|
|
|
{
|
|
|
|
config,
|
|
|
|
self',
|
|
|
|
inputs',
|
|
|
|
pkgs,
|
|
|
|
system,
|
|
|
|
...
|
|
|
|
}:
|
|
|
|
{
|
2024-11-16 23:02:15 +01:00
|
|
|
packages.default = self'.packages.share-via-http;
|
|
|
|
packages.share-via-http = pkgs.callPackage ./default.nix { };
|
2024-11-16 16:07:17 +01:00
|
|
|
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|