From 4c75542c64411e50e02a3c6d5ccbb805366a8042 Mon Sep 17 00:00:00 2001 From: Arthur Gautier Date: Sat, 16 Aug 2025 20:59:08 -0700 Subject: [PATCH] gow: init at 0-unstable-2025-08-13 Signed-off-by: Arthur Gautier --- pkgs/by-name/go/gow/package.nix | 38 +++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 pkgs/by-name/go/gow/package.nix diff --git a/pkgs/by-name/go/gow/package.nix b/pkgs/by-name/go/gow/package.nix new file mode 100644 index 000000000000..0d6ffc81d47b --- /dev/null +++ b/pkgs/by-name/go/gow/package.nix @@ -0,0 +1,38 @@ +{ + lib, + buildGoModule, + fetchFromGitHub, + makeWrapper, + go, +}: + +buildGoModule (finalAttrs: { + pname = "gow"; + version = "0-unstable-2025-08-13"; + + src = fetchFromGitHub { + owner = "mitranim"; + repo = "gow"; + rev = "466e175ff6996eba082cb86ac7b43fc5f8f9c766"; + hash = "sha256-vfJ6AFkCeyGKWF/a26ulyErCjCng+uHJlLyRfBmtLs0="; + }; + + vendorHash = "sha256-L7H3tZQXfeDtWLMvxSMf4/Oez8OV5Q+NhKLkJ991sNA="; + + # This is required for wrapProgram. + allowGoReference = true; + + nativeBuildInputs = [ makeWrapper ]; + + postFixup = '' + wrapProgram $out/bin/gow --prefix PATH : ${lib.makeBinPath [ go ]} + ''; + + meta = { + homepage = "https://github.com/mitranim/gow"; + description = "Missing watch mode for Go commands"; + mainProgram = "gox"; + license = lib.licenses.unlicense; + maintainers = with lib.maintainers; [ baloo ]; + }; +})