nixpkgs-suyu/pkgs/development/libraries/nanoflann/default.nix
volth 46420bbaa3 treewide: name -> pname (easy cases) (#66585)
treewide replacement of

stdenv.mkDerivation rec {
  name = "*-${version}";
  version = "*";

to pname
2019-08-15 13:41:18 +01:00

25 lines
595 B
Nix

{stdenv, fetchFromGitHub, cmake}:
stdenv.mkDerivation rec {
version = "1.3.0";
pname = "nanoflann";
src = fetchFromGitHub {
owner = "jlblancoc";
repo = "nanoflann";
rev = "v${version}";
sha256 = "1bwdmrz1qygp9qy2nzrp1axa1i4nvm0ljkn6mnhlcvbfsyvhzigv";
};
buildInputs = [ cmake ];
doCheck = true;
checkTarget = "test";
meta = {
homepage = https://github.com/jlblancoc/nanoflann;
license = stdenv.lib.licenses.bsd3;
description = "Header only C++ library for approximate nearest neighbor search";
platforms = stdenv.lib.platforms.unix;
};
}