difftastic: use finalAttrs pattern (#384202)

authored by Pol Dellaiera and committed by GitHub 75f92fe9 00376ce2

+5 -7
+5 -7
pkgs/by-name/di/difftastic/package.nix
··· 6 6 nix-update-script, 7 7 }: 8 8 9 - rustPlatform.buildRustPackage rec { 9 + rustPlatform.buildRustPackage (finalAttrs: { 10 10 pname = "difftastic"; 11 11 version = "0.63.0"; 12 12 13 13 src = fetchFromGitHub { 14 14 owner = "wilfred"; 15 15 repo = "difftastic"; 16 - tag = version; 16 + tag = finalAttrs.version; 17 17 hash = "sha256-BxWCSkSeDyiiGBY2u0ahPrIhYq2lbujoPPtZGq/OkI0="; 18 18 }; 19 19 ··· 21 21 cargoHash = "sha256-kIqaZ8truDivMV6uo1+j9bmXQReREZjHSr89ZvVDWCw="; 22 22 23 23 # skip flaky tests 24 - checkFlags = [ 25 - "--skip=options::tests::test_detect_display_width" 26 - ]; 24 + checkFlags = [ "--skip=options::tests::test_detect_display_width" ]; 27 25 28 26 nativeInstallCheckInputs = [ versionCheckHook ]; 29 27 versionCheckProgram = "${placeholder "out"}/bin/difft"; ··· 35 33 meta = { 36 34 description = "Syntax-aware diff"; 37 35 homepage = "https://github.com/Wilfred/difftastic"; 38 - changelog = "https://github.com/Wilfred/difftastic/blob/${version}/CHANGELOG.md"; 36 + changelog = "https://github.com/Wilfred/difftastic/blob/${finalAttrs.src.rev}/CHANGELOG.md"; 39 37 license = lib.licenses.mit; 40 38 maintainers = with lib.maintainers; [ 41 39 ethancedwards8 ··· 45 43 ]; 46 44 mainProgram = "difft"; 47 45 }; 48 - } 46 + })