Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib, 2 stdenv, 3 fetchFromGitLab, 4 autoreconfHook, 5 boost, 6 llvmPackages, 7}: 8 9stdenv.mkDerivation (finalAttrs: { 10 pname = "mdds"; 11 version = "2.0.3"; 12 13 src = fetchFromGitLab { 14 owner = "mdds"; 15 repo = "mdds"; 16 rev = finalAttrs.version; 17 hash = "sha256-Y9uBJKM34UTEj/3c1w69QHhvwFcMNlAohEco0O0B+xI="; 18 }; 19 20 nativeBuildInputs = [ autoreconfHook ]; 21 22 buildInputs = lib.optionals stdenv.cc.isClang [ llvmPackages.openmp ]; 23 24 nativeCheckInputs = [ boost ]; 25 26 postInstall = '' 27 mkdir -p $out/lib/ 28 mv $out/share/pkgconfig $out/lib/ 29 ''; 30 31 meta = with lib; { 32 homepage = "https://gitlab.com/mdds/mdds"; 33 description = "A collection of multi-dimensional data structure and indexing algorithms"; 34 changelog = "https://gitlab.com/mdds/mdds/-/blob/${finalAttrs.version}/CHANGELOG"; 35 license = licenses.mit; 36 maintainers = [ maintainers.AndersonTorres ]; 37 platforms = platforms.unix; 38 }; 39}) 40# TODO: multi-output