Skip to content

Commit

Permalink
use flake-utils input and also override it in the template
Browse files Browse the repository at this point in the history
  • Loading branch information
Mic92 committed Sep 13, 2023
1 parent f6cddc0 commit 295d11f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 1 addition & 2 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@
description = "Convert go.mod/go.sum to Nix packages";

inputs.nixpkgs.url = "github:NixOS/nixpkgs/master";

inputs.utils.url = "github:numtide/flake-utils";
inputs.flake-utils.url = "github:numtide/flake-utils";

outputs = { self, nixpkgs, utils }:
{
Expand Down
2 changes: 2 additions & 0 deletions templates/app/flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
inputs.flake-utils.url = "github:numtide/flake-utils";
inputs.gomod2nix.url = "github:nix-community/gomod2nix";
inputs.gomod2nix.inputs.nixpkgs.follows = "nixpkgs";
inputs.gomod2nix.inputs.flake-utils.follows = "flake-utils";

outputs = { self, nixpkgs, flake-utils, gomod2nix }:
(flake-utils.lib.eachDefaultSystem
Expand Down

0 comments on commit 295d11f

Please sign in to comment.