From 1db8ba6f4b4b6120702845027604d5da598a991e Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Sat, 6 Aug 2022 12:50:56 -0700 Subject: ref(tools): simplify the import of tools In the `mkSystem` function, instead of defining each tools, let's import all of them at once. This works both with installing a tool from a module or running them from the CLI. Change-Id: Ia44ff9a45b54a1ecea6f6b02b4cad2956799f627 Reviewed-on: https://cl.fcuny.net/c/world/+/682 Tested-by: CI Reviewed-by: Franck Cuny --- tools/ipconverter/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tools/ipconverter') diff --git a/tools/ipconverter/default.nix b/tools/ipconverter/default.nix index 3be25fc..c4d2f3a 100644 --- a/tools/ipconverter/default.nix +++ b/tools/ipconverter/default.nix @@ -1,6 +1,6 @@ -{ pkgs, ... }: +{ pkgs, buildGoModule, ... }: -pkgs.buildGoModule rec { +buildGoModule rec { name = "ipconverter"; src = ./.; vendorSha256 = "sha256-pQpattmS9VmO3ZIQUFn66az8GSmB4IvYhTTCFn6SUmo="; -- cgit 1.4.1