diff --git a/pkgs/by-name/cl/clorinde/package.nix b/pkgs/by-name/cl/clorinde/package.nix index 91bca22740e3..6d9399040404 100644 --- a/pkgs/by-name/cl/clorinde/package.nix +++ b/pkgs/by-name/cl/clorinde/package.nix @@ -6,14 +6,14 @@ nix-update-script, }: -rustPlatform.buildRustPackage rec { +rustPlatform.buildRustPackage (finalAttrs: { pname = "clorinde"; version = "0.12.0"; src = fetchFromGitHub { owner = "halcyonnouveau"; repo = "clorinde"; - tag = "clorinde-v${version}"; + tag = "clorinde-v${finalAttrs.version}"; hash = "sha256-F6RGDhx5+efOKHB35obx6GTncVb0ZloSfLbRbFfunVY="; }; @@ -22,7 +22,7 @@ rustPlatform.buildRustPackage rec { cargoBuildFlags = [ "--package=clorinde" ]; - cargoTestFlags = cargoBuildFlags; + cargoTestFlags = finalAttrs.cargoBuildFlags; nativeInstallCheckInputs = [ versionCheckHook ]; versionCheckProgramArg = "--version"; @@ -38,7 +38,7 @@ rustPlatform.buildRustPackage rec { meta = { description = "Generate type-checked Rust from your PostgreSQL"; homepage = "https://github.com/halcyonnouveau/clorinde"; - changelog = "https://github.com/halcyonnouveau/clorinde/blob/${src.rev}/CHANGELOG.md"; + changelog = "https://github.com/halcyonnouveau/clorinde/blob/${finalAttrs.src.rev}/CHANGELOG.md"; license = with lib.licenses; [ mit asl20 @@ -46,4 +46,4 @@ rustPlatform.buildRustPackage rec { maintainers = with lib.maintainers; [ defelo ]; mainProgram = "clorinde"; }; -} +})