lol
fork

Configure Feed

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

cq: refactor to finalAttrs style

authored by philiptaron.tngl.sh and committed by

Benjamin Sparks f8164fc5 52ad7478

+8 -11
+8 -11
pkgs/by-name/cq/cq/package.nix
··· 6 6 graalvmPackages, 7 7 }: 8 8 9 - buildGraalvmNativeImage rec { 9 + buildGraalvmNativeImage (finalAttrs: { 10 10 pname = "cq"; 11 11 version = "2024.06.24-12.10"; 12 12 13 13 # we need both src (the prebuild jar) 14 14 src = fetchurl { 15 - url = "https://github.com/markus-wa/cq/releases/download/${version}/cq.jar"; 15 + url = "https://github.com/markus-wa/cq/releases/download/${finalAttrs.version}/cq.jar"; 16 16 hash = "sha256-iULV+j/AuGVYPYhbOTQTKd3n+VZhWQYBRE6cRiaa1/M="; 17 17 }; 18 18 19 19 # and build-src (for the native-image build process) 20 - build-src = fetchFromGitHub { 20 + passthru.build-src = fetchFromGitHub { 21 21 owner = "markus-wa"; 22 22 repo = "cq"; 23 - rev = version; 23 + tag = finalAttrs.version; 24 24 hash = "sha256-yjAC2obipdmh+JlHzVUTMtTXN2VKe4WKkyJyu2Q93c8="; 25 25 }; 26 26 27 - graalvmDrv = graalvmPackages.graalvm-ce; 28 - 29 - executable = "cq"; 30 - 31 27 # copied verbatim from the upstream build script https://github.com/markus-wa/cq/blob/main/package/build-native.sh#L5 32 28 extraNativeImageBuildArgs = [ 33 29 "--report-unsupported-elements-at-runtime" 34 30 "--initialize-at-build-time" 35 31 "--no-server" 36 - "-H:ReflectionConfigurationFiles=${build-src}/package/reflection-config.json" 32 + "-H:ReflectionConfigurationFiles=${finalAttrs.finalPackage.build-src}/package/reflection-config.json" 37 33 ]; 38 34 39 35 meta = { 40 36 description = "Clojure Query: A Command-line Data Processor for JSON, YAML, EDN, XML and more"; 41 37 homepage = "https://github.com/markus-wa/cq"; 42 - changelog = "https://github.com/markus-wa/cq/releases/releases/tag/${version}"; 38 + changelog = "https://github.com/markus-wa/cq/releases/releases/tag/${finalAttrs.version}"; 43 39 license = lib.licenses.epl20; 44 40 maintainers = with lib.maintainers; [ farcaller ]; 45 41 platforms = lib.platforms.unix; 42 + mainProgram = "cq"; 46 43 }; 47 - } 44 + })