mdbtools: fix build failure; improve (#425444)
This commit is contained in:
commit
8f5972c5de
@ -10,17 +10,20 @@
|
|||||||
autoreconfHook,
|
autoreconfHook,
|
||||||
txt2man,
|
txt2man,
|
||||||
which,
|
which,
|
||||||
|
gettext,
|
||||||
|
nix-update-script,
|
||||||
|
versionCheckHook,
|
||||||
}:
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation (finalAttrs: {
|
||||||
pname = "mdbtools";
|
pname = "mdbtools";
|
||||||
version = "1.0.1";
|
version = "1.0.1";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "mdbtools";
|
owner = "mdbtools";
|
||||||
repo = "mdbtools";
|
repo = "mdbtools";
|
||||||
rev = "v${version}";
|
tag = "v${finalAttrs.version}";
|
||||||
sha256 = "sha256-XWkFgQZKx9/pjVNEqfp9BwgR7w3fVxQ/bkJEYUvCXPs=";
|
hash = "sha256-XWkFgQZKx9/pjVNEqfp9BwgR7w3fVxQ/bkJEYUvCXPs=";
|
||||||
};
|
};
|
||||||
|
|
||||||
configureFlags = [ "--disable-scrollkeeper" ];
|
configureFlags = [ "--disable-scrollkeeper" ];
|
||||||
@ -41,16 +44,27 @@ stdenv.mkDerivation rec {
|
|||||||
readline
|
readline
|
||||||
];
|
];
|
||||||
|
|
||||||
|
postUnpack = ''
|
||||||
|
cp -v ${gettext}/share/gettext/m4/lib-{link,prefix,ld}.m4 source/m4
|
||||||
|
'';
|
||||||
|
|
||||||
enableParallelBuilding = true;
|
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";
|
description = ".mdb (MS Access) format tools";
|
||||||
license = with licenses; [
|
homepage = "https://mdbtools.github.io/";
|
||||||
|
license = with lib.licenses; [
|
||||||
gpl2Plus
|
gpl2Plus
|
||||||
lgpl2
|
lgpl2
|
||||||
];
|
];
|
||||||
maintainers = [ ];
|
platforms = lib.platforms.unix;
|
||||||
platforms = platforms.unix;
|
|
||||||
inherit (src.meta) homepage;
|
|
||||||
};
|
};
|
||||||
}
|
})
|
||||||
|
Loading…
x
Reference in New Issue
Block a user