From 7002f2f3c8c80ee7d0622d18e01e5bd48fa96d92 Mon Sep 17 00:00:00 2001 From: Vonfry Date: Wed, 17 Aug 2022 10:55:13 +0800 Subject: [PATCH] spectra: init at 1.0.1 --- .../development/libraries/spectra/default.nix | 30 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 32 insertions(+) create mode 100644 pkgs/development/libraries/spectra/default.nix 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 { };