jet: refactor to finalAttrs style
This commit is contained in:
committed by
Benjamin Sparks
parent
f8164fc556
commit
b823450524
@@ -3,15 +3,14 @@
|
||||
buildGraalvmNativeImage,
|
||||
fetchurl,
|
||||
testers,
|
||||
jet,
|
||||
}:
|
||||
|
||||
buildGraalvmNativeImage rec {
|
||||
buildGraalvmNativeImage (finalAttrs: {
|
||||
pname = "jet";
|
||||
version = "0.7.27";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://github.com/borkdude/${pname}/releases/download/v${version}/${pname}-${version}-standalone.jar";
|
||||
url = "https://github.com/borkdude/jet/releases/download/v${finalAttrs.version}/jet-${finalAttrs.version}-standalone.jar";
|
||||
sha256 = "sha256-250/1DBNCXlU1b4jjLUUOXI+uSbOyPXtBN1JJRpdmFc=";
|
||||
};
|
||||
|
||||
@@ -23,17 +22,17 @@ buildGraalvmNativeImage rec {
|
||||
];
|
||||
|
||||
passthru.tests.version = testers.testVersion {
|
||||
inherit version;
|
||||
package = jet;
|
||||
inherit (finalAttrs) version;
|
||||
package = finalAttrs.finalPackage;
|
||||
command = "jet --version";
|
||||
};
|
||||
|
||||
meta = with lib; {
|
||||
meta = {
|
||||
description = "CLI to transform between JSON, EDN, YAML and Transit, powered with a minimal query language";
|
||||
homepage = "https://github.com/borkdude/jet";
|
||||
sourceProvenance = with sourceTypes; [ binaryBytecode ];
|
||||
license = licenses.epl10;
|
||||
maintainers = with maintainers; [ ericdallo ];
|
||||
sourceProvenance = with lib.sourceTypes; [ binaryBytecode ];
|
||||
license = lib.licenses.epl10;
|
||||
maintainers = with lib.maintainers; [ ericdallo ];
|
||||
mainProgram = "jet";
|
||||
};
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user