fix: update all flake.locks
This commit is contained in:
parent
9b3f73848c
commit
f79afe59c3
10 changed files with 132 additions and 127 deletions
|
@ -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;};
|
||||
});
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue