lol

quantum-espresso: switch to fetchFromGitLab

+18 -11
+18 -11
pkgs/applications/science/chemistry/quantum-espresso/default.nix
··· 1 - { lib, stdenv, fetchurl 2 - , gfortran, fftw, blas, lapack 1 + { lib 2 + , stdenv 3 + , fetchFromGitLab 4 + , gfortran 5 + , fftw 6 + , blas 7 + , lapack 3 8 , useMpi ? false 4 9 , mpi 5 10 }: ··· 8 13 version = "6.6"; 9 14 pname = "quantum-espresso"; 10 15 11 - src = fetchurl { 12 - url = "https://gitlab.com/QEF/q-e/-/archive/qe-${version}/q-e-qe-${version}.tar.gz"; 13 - sha256 = "0b3718bwdqfyssyz25jknijar79qh5cf1bbizv9faliz135mcilj"; 16 + src = fetchFromGitLab { 17 + owner = "QEF"; 18 + repo = "q-e"; 19 + rev = "qe-${version}"; 20 + sha256 = "1mkfmw0fq1dabplzdn6v1abhw0ds55gzlvbx3a9brv493whk21yp"; 14 21 }; 15 22 16 23 passthru = { ··· 24 31 buildInputs = [ fftw blas lapack gfortran ] 25 32 ++ (lib.optionals useMpi [ mpi ]); 26 33 27 - configureFlags = if useMpi then [ "LD=${mpi}/bin/mpif90" ] else [ "LD=${gfortran}/bin/gfortran" ]; 34 + configureFlags = if useMpi then [ "LD=${mpi}/bin/mpif90" ] else [ "LD=${gfortran}/bin/gfortran" ]; 28 35 29 36 makeFlags = [ "all" ]; 30 37 31 38 meta = with lib; { 32 39 description = "Electronic-structure calculations and materials modeling at the nanoscale"; 33 40 longDescription = '' 34 - Quantum ESPRESSO is an integrated suite of Open-Source computer codes for 35 - electronic-structure calculations and materials modeling at the 36 - nanoscale. It is based on density-functional theory, plane waves, and 37 - pseudopotentials. 38 - ''; 41 + Quantum ESPRESSO is an integrated suite of Open-Source computer codes for 42 + electronic-structure calculations and materials modeling at the 43 + nanoscale. It is based on density-functional theory, plane waves, and 44 + pseudopotentials. 45 + ''; 39 46 homepage = "https://www.quantum-espresso.org/"; 40 47 license = licenses.gpl2; 41 48 platforms = [ "x86_64-linux" "x86_64-darwin" ];