11 pname = "go-blueprint";
14 src = fetchFromGitHub {
16 repo = "go-blueprint";
18 hash = "sha256-4KEshM6y27CD+PiyYoz4IWKkfLWRXOTA7bMFfxVYfaI=";
22 "-s -w -X github.com/melkeydev/go-blueprint/cmd.GoBlueprintVersion=v${version}"
25 vendorHash = "sha256-WBzToupC1/O70OYHbKk7S73OEe7XRLAAbY5NoLL7xvw=";
27 nativeBuildInputs = [ installShellFiles ];
28 nativeInstallCheckInputs = [
31 doInstallCheck = true;
32 versionCheckProgramArg = "version";
34 postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
35 installShellCompletion --cmd go-blueprint \
36 --bash <($out/bin/go-blueprint completion bash) \
37 --fish <($out/bin/go-blueprint completion fish) \
38 --zsh <($out/bin/go-blueprint completion zsh)
42 description = "Initialize Go projects using popular frameworks";
43 homepage = "https://github.com/Melkeydev/go-blueprint";
44 license = lib.licenses.mit;
45 maintainers = with lib.maintainers; [ tobifroe ];
46 mainProgram = "go-blueprint";