mdds: Get source archives from gitlab (#204729)

This commit is contained in:
endgame 2022-12-07 07:37:35 +10:00 committed by GitHub
parent 3451a0cb2c
commit 7cb253ed83
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,12 +1,14 @@
{ lib, stdenv, fetchurl, boost, llvmPackages }:
{ lib, stdenv, fetchFromGitLab, autoreconfHook, boost, llvmPackages }:
stdenv.mkDerivation rec {
pname = "mdds";
version = "2.0.2";
src = fetchurl {
url = "https://kohei.us/files/${pname}/src/${pname}-${version}.tar.bz2";
sha256 = "sha256-EyEfLy44fvO3TXOh3O5Soa1c4G34+OZkdnnfknijEWo=";
src = fetchFromGitLab {
owner = "mdds";
repo = pname;
rev = version;
sha256 = "sha256-jCzF0REocpnP56LfY42zlGTXyKyz4GPovDshhrh4jyo=";
};
postInstall = ''
@ -14,14 +16,17 @@ stdenv.mkDerivation rec {
cp "$out/share/pkgconfig/"* "$out/lib/pkgconfig"
'';
nativeBuildInputs = [ autoreconfHook ];
buildInputs = lib.optionals stdenv.cc.isClang [ llvmPackages.openmp ];
checkInputs = [ boost ];
meta = with lib; {
homepage = "https://gitlab.com/mdds/mdds";
description = "A collection of multi-dimensional data structure and indexing algorithm";
platforms = platforms.all;
homepage = "https://gitlab.com/mdds/mdds";
maintainers = [];
license = licenses.mit;
platforms = platforms.all;
};
}