diff options
Diffstat (limited to 'nixpkgs/pkgs/development/libraries/mdds')
-rw-r--r-- | nixpkgs/pkgs/development/libraries/mdds/default.nix | 41 |
1 files changed, 27 insertions, 14 deletions
diff --git a/nixpkgs/pkgs/development/libraries/mdds/default.nix b/nixpkgs/pkgs/development/libraries/mdds/default.nix index 8ca137e66119..23059b91e7c0 100644 --- a/nixpkgs/pkgs/development/libraries/mdds/default.nix +++ b/nixpkgs/pkgs/development/libraries/mdds/default.nix @@ -1,27 +1,40 @@ -{ lib, stdenv, fetchurl, boost, llvmPackages }: +{ lib, + stdenv, + fetchFromGitLab, + autoreconfHook, + boost, + llvmPackages, +}: -stdenv.mkDerivation rec { +stdenv.mkDerivation (finalAttrs: { pname = "mdds"; - version = "2.0.2"; + version = "2.0.3"; - src = fetchurl { - url = "https://kohei.us/files/${pname}/src/${pname}-${version}.tar.bz2"; - sha256 = "sha256-EyEfLy44fvO3TXOh3O5Soa1c4G34+OZkdnnfknijEWo="; + src = fetchFromGitLab { + owner = "mdds"; + repo = "mdds"; + rev = finalAttrs.version; + hash = "sha256-Y9uBJKM34UTEj/3c1w69QHhvwFcMNlAohEco0O0B+xI="; }; - postInstall = '' - mkdir -p "$out/lib/pkgconfig" - cp "$out/share/pkgconfig/"* "$out/lib/pkgconfig" - ''; + nativeBuildInputs = [ autoreconfHook ]; buildInputs = lib.optionals stdenv.cc.isClang [ llvmPackages.openmp ]; - checkInputs = [ boost ]; + nativeCheckInputs = [ boost ]; + + postInstall = '' + mkdir -p $out/lib/ + mv $out/share/pkgconfig $out/lib/ + ''; meta = with lib; { homepage = "https://gitlab.com/mdds/mdds"; - description = "A collection of multi-dimensional data structure and indexing algorithm"; - platforms = platforms.all; + description = "A collection of multi-dimensional data structure and indexing algorithms"; + changelog = "https://gitlab.com/mdds/mdds/-/blob/${finalAttrs.version}/CHANGELOG"; license = licenses.mit; + maintainers = [ maintainers.AndersonTorres ]; + platforms = platforms.unix; }; -} +}) +# TODO: multi-output |