mdbtools: improve
This commit is contained in:
parent
3794b8a20b
commit
1c82e688dc
@ -11,17 +11,19 @@
|
||||
txt2man,
|
||||
which,
|
||||
gettext,
|
||||
nix-update-script,
|
||||
versionCheckHook,
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
pname = "mdbtools";
|
||||
version = "1.0.1";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "mdbtools";
|
||||
repo = "mdbtools";
|
||||
rev = "v${version}";
|
||||
sha256 = "sha256-XWkFgQZKx9/pjVNEqfp9BwgR7w3fVxQ/bkJEYUvCXPs=";
|
||||
tag = "v${finalAttrs.version}";
|
||||
hash = "sha256-XWkFgQZKx9/pjVNEqfp9BwgR7w3fVxQ/bkJEYUvCXPs=";
|
||||
};
|
||||
|
||||
configureFlags = [ "--disable-scrollkeeper" ];
|
||||
@ -48,14 +50,21 @@ stdenv.mkDerivation rec {
|
||||
|
||||
enableParallelBuilding = true;
|
||||
|
||||
meta = with lib; {
|
||||
doInstallCheck = true;
|
||||
nativeInstallCheckInputs = [ versionCheckHook ];
|
||||
versionCheckProgram = "${placeholder "out"}/bin/mdb-ver";
|
||||
versionCheckProgramArg = "--version";
|
||||
|
||||
passthru.updateScript = nix-update-script { };
|
||||
|
||||
meta = {
|
||||
changelog = "https://github.com/mdbtools/mdbtools/releases/tag/v${finalAttrs.version}";
|
||||
description = ".mdb (MS Access) format tools";
|
||||
license = with licenses; [
|
||||
homepage = "https://mdbtools.github.io/";
|
||||
license = with lib.licenses; [
|
||||
gpl2Plus
|
||||
lgpl2
|
||||
];
|
||||
maintainers = [ ];
|
||||
platforms = platforms.unix;
|
||||
inherit (src.meta) homepage;
|
||||
platforms = lib.platforms.unix;
|
||||
};
|
||||
}
|
||||
})
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user