this repo has no description
1{
2 description = "Golang Project Template";
3
4 inputs = {
5 nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable";
6 };
7
8 outputs =
9 { self, nixpkgs }:
10 let
11 inherit (nixpkgs) lib;
12
13 eachSystem =
14 systems: fn:
15 lib.foldl' (
16 acc: system: lib.recursiveUpdate acc (lib.mapAttrs (_: value: { ${system} = value; }) (fn system))
17 ) { } systems;
18
19 systems = lib.systems.flakeExposed;
20 in
21 eachSystem systems (
22 system:
23 let
24 pkgs = nixpkgs.legacyPackages.${system};
25 in
26 {
27 packages = {
28 example = pkgs.callPackage ./default.nix { };
29 default = self.packages.${pkgs.stdenv.hostPlatform.system}.example;
30 };
31
32 devShells = {
33 default = pkgs.callPackage ./shell.nix { };
34 };
35 }
36 )
37 // {
38 overlays.default = final: _: { example = final.callPackage ./default.nix { }; };
39 };
40}