Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at fix-function-merge 36 lines 1.3 kB view raw
1{ lib, stdenv, fetchurl }: 2 3stdenv.mkDerivation rec { 4 pname = "dyncall"; 5 version = "1.4"; 6 7 src = fetchurl { 8 url = "https://www.dyncall.org/r${version}/dyncall-${version}.tar.gz"; 9 # https://www.dyncall.org/r1.4/SHA256 10 sha256 = "sha256-FEN9u+87bckkg/ZQfq+CWrl5ZKie7K6Ms0emvsnDKq4="; 11 }; 12 13 # XXX: broken tests, failures masked, lets avoid crashing a bunch for now :) 14 doCheck = false; 15 16 # install bits not automatically installed 17 postInstall = '' 18 # install cmake modules to make using dyncall easier 19 # This is essentially what -DINSTALL_CMAKE_MODULES=ON if using cmake build 20 # We don't use the cmake-based build since it installs different set of headers 21 # (mostly fewer headers, but installs dyncall_alloc_wx.h "instead" dyncall_alloc.h) 22 # and we'd have to patch the cmake module installation to not use CMAKE_ROOT anyway :). 23 install -D -t $out/lib/cmake ./buildsys/cmake/Modules/Find*.cmake 24 25 # manpages are nice, install them 26 # doing this is in the project's "ToDo", so check this when updating! 27 install -D -t $out/share/man/man3 ./*/*.3 28 ''; 29 30 meta = with lib; { 31 description = "Highly dynamic multi-platform foreign function call interface library"; 32 homepage = "https://www.dyncall.org"; 33 license = licenses.isc; 34 maintainers = with maintainers; [ dtzWill ]; 35 }; 36}