nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

cljfmt: refactor to finalAttrs style

authored by philiptaron.tngl.sh and committed by

Benjamin Sparks c6180d04 9fbc73c2

+6 -7
+6 -7
pkgs/by-name/cl/cljfmt/package.nix
··· 4 4 fetchurl, 5 5 nix-update-script, 6 6 testers, 7 - cljfmt, 8 7 }: 9 8 10 - buildGraalvmNativeImage rec { 9 + buildGraalvmNativeImage (finalAttrs: { 11 10 pname = "cljfmt"; 12 11 version = "0.13.1"; 13 12 14 13 src = fetchurl { 15 - url = "https://github.com/weavejester/cljfmt/releases/download/${version}/cljfmt-${version}-standalone.jar"; 14 + url = "https://github.com/weavejester/cljfmt/releases/download/${finalAttrs.version}/cljfmt-${finalAttrs.version}-standalone.jar"; 16 15 hash = "sha256-Dj1g6hMzRhqm0pJggODVFgEkayB2Wdh3d0z6RglHbgY="; 17 16 }; 18 17 ··· 27 28 passthru.updateScript = nix-update-script { }; 28 29 29 30 passthru.tests.version = testers.testVersion { 30 - inherit version; 31 - package = cljfmt; 31 + inherit (finalAttrs) version; 32 + package = finalAttrs.finalPackage; 32 33 command = "cljfmt --version"; 33 34 }; 34 35 ··· 38 39 homepage = "https://github.com/weavejester/cljfmt"; 39 40 sourceProvenance = with lib.sourceTypes; [ binaryBytecode ]; 40 41 license = lib.licenses.epl10; 41 - changelog = "https://github.com/weavejester/cljfmt/blob/${version}/CHANGELOG.md"; 42 + changelog = "https://github.com/weavejester/cljfmt/blob/${finalAttrs.version}/CHANGELOG.md"; 42 43 maintainers = with lib.maintainers; [ sg-qwt ]; 43 44 }; 44 - } 45 + })