flake-template-hell/templates/go/flake.nix

27 lines
771 B
Nix

{
description = "CHANGE DESC";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
systems.url = "github:nix-systems/default";
};
outputs = { self, nixpkgs, systems, }:
let
inherit (nixpkgs) lib;
pkgsFor = nixpkgs.legacyPackages;
forAllSystems = f:
lib.genAttrs (import systems) (system: f system pkgsFor.${system});
in {
packages = forAllSystems (system: pkgs: {
default = pkgs.callPackage ./flake/package.nix { };
CHANGE_NAME = self.packages.${system}.default;
});
devShells = forAllSystems
(_: pkgs: { default = pkgs.callPackage ./flake/shell.nix { }; });
formatter =
forAllSystems (_: pkgs: pkgs.callPackage ./flake/formatter.nix { });
};
}