1
0
mirror of https://github.com/kmein/niveum synced 2026-03-16 10:11:08 +01:00
Files
niveum/packages/stardict-tools.nix

58 lines
1.0 KiB
Nix
Raw Normal View History

2023-09-15 10:59:14 +02:00
{
stdenv,
autoreconfHook,
pkg-config,
which,
libtool,
glib,
zlib,
gtk3,
libmysqlclient,
pcre,
libxml2,
gnused,
fetchFromGitHub,
}:
stdenv.mkDerivation {
name = "stardict-tools";
nativeBuildInputs = [
autoreconfHook
pkg-config
which
libtool
];
2025-12-27 22:22:54 +01:00
buildInputs = [
glib
zlib
gtk3
libmysqlclient
pcre
libxml2
];
2023-09-15 10:59:14 +02:00
buildPhase = "make";
2025-12-27 22:22:54 +01:00
configureFlags = [ "--disable-dict" ];
2023-09-15 10:59:14 +02:00
env.NIX_CFLAGS_COMPILE = toString [
"-Wno-error=format-security"
];
2025-12-25 09:08:42 +01:00
postPatch = ''
substituteInPlace tools/src/Makefile.am \
--replace-fail noinst_PROGRAMS bin_PROGRAMS
2023-09-15 10:59:14 +02:00
'';
2025-12-27 22:22:54 +01:00
installFlags = [ "INSTALL_PREFIX=$(out)" ];
2023-09-15 10:59:14 +02:00
autoreconfPhase = ''
patchShebangs ./autogen.sh
./autogen.sh
'';
installPhase = ''
mkdir $out
make install
'';
2025-12-25 08:49:09 +01:00
doCheck = true;
2023-09-15 10:59:14 +02:00
src = fetchFromGitHub {
owner = "huzheng001";
repo = "stardict-3";
rev = "96b96d89eab5f0ad9246c2569a807d6d7982aa84";
hash = "sha256-zmqp2maKv2JZ5fwMVE7gIOg0BKdEKZ4UvTLC0suuBRw=";
};
}