fix: update all flake.locks

This commit is contained in:
Artur Manuel 2024-12-04 17:35:06 +00:00
commit f79afe59c3
10 changed files with 132 additions and 127 deletions

View file

@ -2,28 +2,37 @@
description = "Go flake template";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/release-24.05";
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
};
outputs = { self, nixpkgs }:
let
outputs = {
self,
nixpkgs,
}: let
allSystems = [
"x86_64-linux"
"aarch64-linux"
];
forAllSystems = f: nixpkgs.lib.genAttrs allSystems (system: f {
pkgs = import nixpkgs { inherit system; };
inherit system;
});
in
{
packages = forAllSystems ({ pkgs, system }: {
default = pkgs.callPackage ./nix/package.nix { };
forAllSystems = f:
nixpkgs.lib.genAttrs allSystems (system:
f {
pkgs = import nixpkgs {inherit system;};
inherit system;
});
in {
packages = forAllSystems ({
pkgs,
system,
}: {
default = pkgs.callPackage ./nix/package.nix {};
go-app = self.packages.${system}.default;
});
devShells = forAllSystems ({ pkgs, system }: {
default = pkgs.callPackage ./nix/shell.nix { inherit (self.packages.${system}) go-app; };
devShells = forAllSystems ({
pkgs,
system,
}: {
default = pkgs.callPackage ./nix/shell.nix {inherit (self.packages.${system}) go-app;};
});
};
}