mirror of
https://github.com/NotAShelf/catApi.git
synced 2025-10-04 16:02:18 +00:00
feat: nix tooling
This commit is contained in:
parent
716b27da8f
commit
5203a18d2d
5 changed files with 79 additions and 1 deletions
26
flake.nix
26
flake.nix
|
@ -0,0 +1,26 @@
|
|||
{
|
||||
description = "Golang Project Template";
|
||||
inputs = {
|
||||
nixpkgs.url = "github:NixOS/nixpkgs";
|
||||
};
|
||||
|
||||
outputs = {
|
||||
self,
|
||||
nixpkgs,
|
||||
}: let
|
||||
systems = ["x86_64-linux" "aarch64-linux"];
|
||||
forEachSystem = nixpkgs.lib.genAttrs systems;
|
||||
|
||||
pkgsForEach = nixpkgs.legacyPackages;
|
||||
in rec {
|
||||
packages = forEachSystem (system: {
|
||||
default = pkgsForEach.${system}.callPackage ./default.nix {};
|
||||
});
|
||||
|
||||
devShells = forEachSystem (system: {
|
||||
default = pkgsForEach.${system}.callPackage ./shell.nix {};
|
||||
});
|
||||
|
||||
hydraJobs = packages;
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue