nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 31 lines 665 B view raw
1{ 2 lib, 3 stdenv, 4 fetchFromGitHub, 5 cmake, 6 eigen, 7}: 8 9stdenv.mkDerivation (finalAttrs: { 10 pname = "spectra"; 11 version = "1.2.0"; 12 13 src = fetchFromGitHub { 14 owner = "yixuan"; 15 repo = "spectra"; 16 rev = "v${finalAttrs.version}"; 17 sha256 = "sha256-lfbOwnTP3GrN/1N/tyMXZrtEHIxAq3EjuHS8M+I87to="; 18 }; 19 20 nativeBuildInputs = [ cmake ]; 21 22 propagatedBuildInputs = [ eigen ]; 23 24 meta = { 25 homepage = "https://spectralib.org/"; 26 description = "C++ library for large scale eigenvalue problems, built on top of Eigen"; 27 license = lib.licenses.mpl20; 28 maintainers = with lib.maintainers; [ vonfry ]; 29 platforms = lib.platforms.unix; 30 }; 31})