Loading pkgs/by-name/sq/sqlc/package.nix +8 −14 Original line number Diff line number Diff line Loading @@ -4,21 +4,17 @@ buildGoModule, fetchFromGitHub, installShellFiles, testers, sqlc, versionCheckHook, }: let version = "1.28.0"; in buildGoModule { buildGoModule (finalAttrs: { pname = "sqlc"; inherit version; version = "1.28.0"; src = fetchFromGitHub { owner = "sqlc-dev"; repo = "sqlc"; rev = "v${version}"; tag = "v${finalAttrs.version}"; hash = "sha256-kACZusfwEIO78OooNGMXCXQO5iPYddmsHCsbJ3wkRQs="; }; Loading @@ -41,11 +37,9 @@ buildGoModule { --zsh <($out/bin/sqlc completion zsh) ''; passthru.tests.version = testers.testVersion { package = sqlc; command = "sqlc version"; version = "v${version}"; }; doInstallCheck = true; nativeInstallCheckInputs = [ versionCheckHook ]; versionCheckProgramArg = "version"; meta = { description = "Generate type-safe code from SQL"; Loading @@ -54,4 +48,4 @@ buildGoModule { maintainers = with lib.maintainers; [ aaronjheng ]; mainProgram = "sqlc"; }; } }) Loading
pkgs/by-name/sq/sqlc/package.nix +8 −14 Original line number Diff line number Diff line Loading @@ -4,21 +4,17 @@ buildGoModule, fetchFromGitHub, installShellFiles, testers, sqlc, versionCheckHook, }: let version = "1.28.0"; in buildGoModule { buildGoModule (finalAttrs: { pname = "sqlc"; inherit version; version = "1.28.0"; src = fetchFromGitHub { owner = "sqlc-dev"; repo = "sqlc"; rev = "v${version}"; tag = "v${finalAttrs.version}"; hash = "sha256-kACZusfwEIO78OooNGMXCXQO5iPYddmsHCsbJ3wkRQs="; }; Loading @@ -41,11 +37,9 @@ buildGoModule { --zsh <($out/bin/sqlc completion zsh) ''; passthru.tests.version = testers.testVersion { package = sqlc; command = "sqlc version"; version = "v${version}"; }; doInstallCheck = true; nativeInstallCheckInputs = [ versionCheckHook ]; versionCheckProgramArg = "version"; meta = { description = "Generate type-safe code from SQL"; Loading @@ -54,4 +48,4 @@ buildGoModule { maintainers = with lib.maintainers; [ aaronjheng ]; mainProgram = "sqlc"; }; } })