Loading pkgs/by-name/wh/whosthere/package.nix +13 −0 Original line number Diff line number Diff line { buildGoModule, fetchFromGitHub, installShellFiles, lib, stdenv, nix-update-script, versionCheckHook, }: Loading @@ -19,6 +21,10 @@ buildGoModule (finalAttrs: { vendorHash = "sha256-YVPsWpIXC5SLm+T2jEGqF4MBcKOAAk0Vpc7zCIFkNw8="; nativeBuildInputs = [ installShellFiles ]; ldflags = [ "-s" "-X" Loading @@ -35,6 +41,13 @@ buildGoModule (finalAttrs: { in [ "-skip=^${builtins.concatStringsSep "$|^" skippedTests}$" ]; postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) '' installShellCompletion --cmd whosthere \ --bash <("$out/bin/whosthere" completion bash) \ --fish <("$out/bin/whosthere" completion fish) \ --zsh <("$out/bin/whosthere" completion zsh) ''; nativeInstallCheckInputs = [ versionCheckHook ]; Loading Loading
pkgs/by-name/wh/whosthere/package.nix +13 −0 Original line number Diff line number Diff line { buildGoModule, fetchFromGitHub, installShellFiles, lib, stdenv, nix-update-script, versionCheckHook, }: Loading @@ -19,6 +21,10 @@ buildGoModule (finalAttrs: { vendorHash = "sha256-YVPsWpIXC5SLm+T2jEGqF4MBcKOAAk0Vpc7zCIFkNw8="; nativeBuildInputs = [ installShellFiles ]; ldflags = [ "-s" "-X" Loading @@ -35,6 +41,13 @@ buildGoModule (finalAttrs: { in [ "-skip=^${builtins.concatStringsSep "$|^" skippedTests}$" ]; postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) '' installShellCompletion --cmd whosthere \ --bash <("$out/bin/whosthere" completion bash) \ --fish <("$out/bin/whosthere" completion fish) \ --zsh <("$out/bin/whosthere" completion zsh) ''; nativeInstallCheckInputs = [ versionCheckHook ]; Loading