Files
nixpkgs/pkgs/by-name/md/mdbtools/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

71 lines
1.4 KiB
Nix

{
stdenv,
lib,
fetchFromGitHub,
glib,
readline,
bison,
flex,
pkg-config,
autoreconfHook,
txt2man,
which,
gettext,
nix-update-script,
versionCheckHook,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "mdbtools";
version = "1.0.1";
src = fetchFromGitHub {
owner = "mdbtools";
repo = "mdbtools";
tag = "v${finalAttrs.version}";
hash = "sha256-XWkFgQZKx9/pjVNEqfp9BwgR7w3fVxQ/bkJEYUvCXPs=";
};
configureFlags = [ "--disable-scrollkeeper" ];
env.NIX_CFLAGS_COMPILE = lib.optionalString stdenv.cc.isClang "-Wno-error=unused-but-set-variable";
nativeBuildInputs = [
pkg-config
bison
flex
autoreconfHook
txt2man
which
];
buildInputs = [
glib
readline
];
postUnpack = ''
cp -v ${gettext}/share/gettext/m4/lib-{link,prefix,ld}.m4 source/m4
'';
enableParallelBuilding = true;
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";
homepage = "https://mdbtools.github.io/";
license = with lib.licenses; [
gpl2Plus
lgpl2
];
platforms = lib.platforms.unix;
};
})