From 6113740b71f04c6dd0f064a840345a95aee26325 Mon Sep 17 00:00:00 2001 From: Hilmar Falkenberg Date: Mon, 14 Oct 2024 14:43:50 +0200 Subject: [PATCH] buildGoModule.override --- flake.nix | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/flake.nix b/flake.nix index 9c1d96ad1c..2232139f19 100644 --- a/flake.nix +++ b/flake.nix @@ -20,10 +20,6 @@ in { - elections = pname package.nix { - buildGoModule = buildGoModule.override { go = go_1_23; }; - }; - # Provide some binary packages for selected system types. packages = forAllSystems (system: let @@ -31,6 +27,10 @@ inherit (pkgs) stdenv lib ; in { + elections = pname pkgs.nix { + buildGoModule = buildGoModule.override { go = go_1_23; }; + }; + ${pname} = pkgs.buildGoModule rec { inherit pname self; version = lib.fileContents ./VERSION;