mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-08-31 12:44:44 +00:00
Added `versionCheckHook`
Added `patches` to include missing header file `pthread.h`. Without it
the build will fail with:
> widgets/font_browser.cxx: In function 'void find_fonts()':
> widgets/font_browser.cxx:391:13: error: 'pthread_create' was not de
> 391 | if (pthread_create(&find_font_thread, NULL, find_fi
> | ^~~~~~~~~~~~~~
> | pthread_t
> make[2]: *** [Makefile:3513: widgets/flmsg-font_browser.o] Error 1
45 lines
918 B
Nix
45 lines
918 B
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchurl,
|
|
fltk_1_3,
|
|
libjpeg,
|
|
pkg-config,
|
|
versionCheckHook,
|
|
}:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
version = "4.0.24";
|
|
pname = "flmsg";
|
|
src = fetchurl {
|
|
url = "mirror://sourceforge/fldigi/flmsg-${finalAttrs.version}.tar.gz";
|
|
sha256 = "sha256-kzQHmND5zK/Hy40Z0RRstnJ5x5cjxDax0l2idjmeBpQ=";
|
|
};
|
|
|
|
#This has been reported to upstream via email : w1hkj@w1hkj.com
|
|
patches = [
|
|
./add-missing-pthread-include.patch
|
|
];
|
|
|
|
buildInputs = [
|
|
fltk_1_3
|
|
libjpeg
|
|
];
|
|
|
|
nativeBuildInputs = [
|
|
pkg-config
|
|
];
|
|
|
|
nativeInstallCheckInputs = [ versionCheckHook ];
|
|
doInstallCheck = true;
|
|
|
|
meta = {
|
|
description = "Digital modem message program";
|
|
homepage = "https://sourceforge.net/projects/fldigi/";
|
|
license = lib.licenses.gpl3Plus;
|
|
maintainers = with lib.maintainers; [ dysinger ];
|
|
platforms = lib.platforms.linux;
|
|
mainProgram = "flmsg";
|
|
};
|
|
})
|