Unverified Commit 3255b0c3 authored by Pol Dellaiera's avatar Pol Dellaiera Committed by GitHub
Browse files

clorinde: use finalAttrs pattern (#384201)

parents 75f92fe9 fe9d2197
Loading
Loading
Loading
Loading
+5 −5
Original line number Diff line number Diff line
@@ -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";
  };
}
})