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