lol
0
fork

Configure Feed

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

mdbtools: improve

+18 -9
+18 -9
pkgs/by-name/md/mdbtools/package.nix
··· 11 11 txt2man, 12 12 which, 13 13 gettext, 14 + nix-update-script, 15 + versionCheckHook, 14 16 }: 15 17 16 - stdenv.mkDerivation rec { 18 + stdenv.mkDerivation (finalAttrs: { 17 19 pname = "mdbtools"; 18 20 version = "1.0.1"; 19 21 20 22 src = fetchFromGitHub { 21 23 owner = "mdbtools"; 22 24 repo = "mdbtools"; 23 - rev = "v${version}"; 24 - sha256 = "sha256-XWkFgQZKx9/pjVNEqfp9BwgR7w3fVxQ/bkJEYUvCXPs="; 25 + tag = "v${finalAttrs.version}"; 26 + hash = "sha256-XWkFgQZKx9/pjVNEqfp9BwgR7w3fVxQ/bkJEYUvCXPs="; 25 27 }; 26 28 27 29 configureFlags = [ "--disable-scrollkeeper" ]; ··· 48 50 49 51 enableParallelBuilding = true; 50 52 51 - meta = with lib; { 53 + doInstallCheck = true; 54 + nativeInstallCheckInputs = [ versionCheckHook ]; 55 + versionCheckProgram = "${placeholder "out"}/bin/mdb-ver"; 56 + versionCheckProgramArg = "--version"; 57 + 58 + passthru.updateScript = nix-update-script { }; 59 + 60 + meta = { 61 + changelog = "https://github.com/mdbtools/mdbtools/releases/tag/v${finalAttrs.version}"; 52 62 description = ".mdb (MS Access) format tools"; 53 - license = with licenses; [ 63 + homepage = "https://mdbtools.github.io/"; 64 + license = with lib.licenses; [ 54 65 gpl2Plus 55 66 lgpl2 56 67 ]; 57 - maintainers = [ ]; 58 - platforms = platforms.unix; 59 - inherit (src.meta) homepage; 68 + platforms = lib.platforms.unix; 60 69 }; 61 - } 70 + })