jo: cleaning (#408071)

authored by Ramses and committed by GitHub 83daec3e 78ecdee2

+25 -7
+25 -7
pkgs/by-name/jo/jo/package.nix
··· 5 5 autoreconfHook, 6 6 pandoc, 7 7 pkg-config, 8 + versionCheckHook, 9 + nix-update-script, 8 10 }: 9 11 10 - stdenv.mkDerivation rec { 12 + stdenv.mkDerivation (finalAttrs: { 11 13 pname = "jo"; 12 14 version = "1.9"; 13 15 14 16 src = fetchFromGitHub { 15 17 owner = "jpmens"; 16 18 repo = "jo"; 17 - rev = version; 19 + tag = finalAttrs.version; 18 20 sha256 = "sha256-1q4/RpxfoAdtY3m8bBuj7bhD17V+4dYo3Vb8zMbI1YU="; 19 21 }; 20 22 ··· 26 28 pkg-config 27 29 ]; 28 30 29 - meta = with lib; { 31 + nativeInstallCheckInputs = [ 32 + versionCheckHook 33 + ]; 34 + versionCheckProgramArg = "-v"; 35 + postInstallCheck = '' 36 + $out/bin/jo -V > /dev/null 37 + seq 1 10 | $out/bin/jo -a | grep '^\[1,2,3,4,5,6,7,8,9,10\]$' > /dev/null 38 + ''; 39 + doInstallCheck = true; 40 + 41 + passthru.updateScript = nix-update-script { }; 42 + 43 + meta = { 30 44 description = "Small utility to create JSON objects"; 31 45 homepage = "https://github.com/jpmens/jo"; 46 + changelog = "https://github.com/jpmens/jo/blob/${finalAttrs.version}/ChangeLog"; 32 47 mainProgram = "jo"; 33 - license = licenses.gpl2Plus; 34 - maintainers = [ maintainers.markus1189 ]; 35 - platforms = platforms.all; 48 + license = lib.licenses.gpl2Plus; 49 + maintainers = with lib.maintainers; [ 50 + xiaoxiangmoe 51 + markus1189 52 + ]; 53 + platforms = lib.platforms.all; 36 54 }; 37 - } 55 + })