diff --git a/pkgs/development/libraries/spectra/default.nix b/pkgs/development/libraries/spectra/default.nix new file mode 100644 index 000000000000..1fc3ccd75765 --- /dev/null +++ b/pkgs/development/libraries/spectra/default.nix @@ -0,0 +1,30 @@ +{ lib +, stdenv +, fetchFromGitHub +, cmake +, eigen +}: + +stdenv.mkDerivation rec { + pname = "spectra"; + version = "1.0.1"; + + src = fetchFromGitHub { + owner = "yixuan"; + repo = pname; + rev = "v${version}"; + sha256 = "sha256-HaJmMo4jYmO/j53/nHrL3bvdQMAvp4Nuhhe8Yc7pL88="; + }; + + nativeBuildInputs = [ cmake ]; + + propagatedBuildInputs = [ eigen ]; + + meta = with lib; { + homepage = "https://spectralib.org/"; + description = "A C++ library for large scale eigenvalue problems, built on top of Eigen"; + license = licenses.mpl20; + maintainers = with maintainers; [ vonfry ]; + platforms = platforms.unix; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index bc770ddbc03d..b23f6a3d9bc7 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -35593,6 +35593,8 @@ with pkgs; refind = callPackage ../tools/bootloaders/refind { }; + spectra = callPackage ../development/libraries/spectra { }; + spectrojack = callPackage ../applications/audio/spectrojack { }; sift = callPackage ../tools/text/sift { };