share-host/flake.nix
Ingolf Wagner 830f04d710
🏗️ create nix package
2024-11-17 05:02:15 +07:00

39 lines
891 B
Nix

{
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,
...
}:
{
packages.default = self'.packages.share-via-http;
packages.share-via-http = pkgs.callPackage ./default.nix { };
};
};
}