From 7cd95f72204da78d301e32187e96437912cdcf3a Mon Sep 17 00:00:00 2001 From: "Mathieu.Grzybek" Date: Fri, 22 Mar 2024 15:18:20 +0100 Subject: [PATCH 1/2] Adding Nix building configuration --- default.nix | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 default.nix diff --git a/default.nix b/default.nix new file mode 100644 index 00000000..ed84d8eb --- /dev/null +++ b/default.nix @@ -0,0 +1,9 @@ +{pkgs ? import {}}: let + lib = pkgs.lib; + matchbox = pkgs.buildGoModule { + name = "matchbox"; + src = lib.cleanSource ../matchbox; + vendorHash = "sha256-sVC4xeQIcqAbKU4MOAtNicHcioYjdsleQwKWLstnjfk"; +}; +in matchbox + From 870f6a2b04387da67416824d3e9f98036ae6cfc6 Mon Sep 17 00:00:00 2001 From: "Mathieu.Grzybek" Date: Mon, 25 Mar 2024 10:30:43 +0100 Subject: [PATCH 2/2] Make buildGoModule the main block --- default.nix | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/default.nix b/default.nix index ed84d8eb..7734589d 100644 --- a/default.nix +++ b/default.nix @@ -1,9 +1,6 @@ -{pkgs ? import {}}: let - lib = pkgs.lib; - matchbox = pkgs.buildGoModule { +{pkgs ? import {}}: +pkgs.buildGoModule { name = "matchbox"; - src = lib.cleanSource ../matchbox; + src = pkgs.lib.cleanSource ../matchbox; vendorHash = "sha256-sVC4xeQIcqAbKU4MOAtNicHcioYjdsleQwKWLstnjfk"; -}; -in matchbox - +}