2021-01-21 17:00:13 +00:00
|
|
|
{ lib, stdenv, fetchurl }:
|
2018-05-16 14:35:59 +01:00
|
|
|
|
2021-08-11 16:27:50 +01:00
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "dyncall";
|
2021-12-31 10:12:12 +00:00
|
|
|
version = "1.3";
|
2018-05-16 14:35:59 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2021-08-11 16:27:50 +01:00
|
|
|
url = "https://www.dyncall.org/r${version}/dyncall-${version}.tar.gz";
|
2021-12-31 10:12:12 +00:00
|
|
|
# https://www.dyncall.org/r1.3/SHA256
|
|
|
|
sha256 = "sha256-q/Ys/DHr1/IWWNqhNwp3gcxRQxYrwIaDhKwH3vnj05A=";
|
2018-05-16 14:35:59 +01:00
|
|
|
};
|
|
|
|
|
2018-05-16 20:06:07 +01:00
|
|
|
# XXX: broken tests, failures masked, lets avoid crashing a bunch for now :)
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
# install bits not automatically installed
|
|
|
|
postInstall = ''
|
|
|
|
# install cmake modules to make using dyncall easier
|
|
|
|
# This is essentially what -DINSTALL_CMAKE_MODULES=ON if using cmake build
|
|
|
|
# We don't use the cmake-based build since it installs different set of headers
|
|
|
|
# (mostly fewer headers, but installs dyncall_alloc_wx.h "instead" dyncall_alloc.h)
|
|
|
|
# and we'd have to patch the cmake module installation to not use CMAKE_ROOT anyway :).
|
|
|
|
install -D -t $out/lib/cmake ./buildsys/cmake/Modules/Find*.cmake
|
|
|
|
|
|
|
|
# manpages are nice, install them
|
|
|
|
# doing this is in the project's "ToDo", so check this when updating!
|
|
|
|
install -D -t $out/share/man/man3 ./*/*.3
|
|
|
|
'';
|
2018-05-16 14:35:59 +01:00
|
|
|
|
2021-01-21 17:00:13 +00:00
|
|
|
meta = with lib; {
|
2018-05-16 14:35:59 +01:00
|
|
|
description = "Highly dynamic multi-platform foreign function call interface library";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://www.dyncall.org";
|
2018-05-16 14:35:59 +01:00
|
|
|
license = licenses.isc;
|
|
|
|
maintainers = with maintainers; [ dtzWill ];
|
|
|
|
};
|
|
|
|
}
|