Skip to content

Commit

Permalink
octopus: 7.2 -> 8.1 (libxc 3.0.1 -> 4.2.3) (#43484)
Browse files Browse the repository at this point in the history
  • Loading branch information
markuskowa authored and xeji committed Jul 13, 2018
1 parent e9585e2 commit 7f1bcb1
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
10 changes: 6 additions & 4 deletions pkgs/applications/science/chemistry/octopus/default.nix
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
{ stdenv, fetchurl, symlinkJoin, gfortran, perl, procps
, libyaml, libxc, fftw, openblas, gsl
, libyaml, libxc, fftw, openblas, gsl, netcdf, arpack
}:

let
version = "7.3";
version = "8.1";
fftwAll = symlinkJoin { name ="ftw-dev-out"; paths = [ fftw.dev fftw.out ]; };

in stdenv.mkDerivation {
name = "octopus-${version}";

src = fetchurl {
url = "http://www.tddft.org/programs/octopus/down.php?file=${version}/octopus-${version}.tar.gz";
sha256 = "0hnpqjjxdxh2ggf6ckrsy4hs9iglnazscb4siczddvmysi4kv15d";
sha256 = "0rxwvcp22364nnhwhqlr38w4rwv1yl60snxi2f8nqdflx1143n10";
};

nativeBuildInputs = [ perl procps fftw.dev ];
buildInputs = [ libyaml gfortran libxc openblas gsl fftw.out ];
buildInputs = [ libyaml gfortran libxc openblas gsl fftw.out netcdf arpack ];

configureFlags = ''
--with-yaml-prefix=${libyaml}
Expand All @@ -37,6 +37,8 @@ in stdenv.mkDerivation {
patchShebangs testsuite/oct-run_testsuite.sh
'';

enableParallelBuilding = true;

meta = with stdenv.lib; {
description = "Real-space time dependent density-functional theory code";
homepage = http://octopus-code.org;
Expand Down
4 changes: 2 additions & 2 deletions pkgs/development/libraries/libxc/default.nix
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
{ stdenv, fetchurl, gfortran, perl }:

let
version = "3.0.1";
version = "4.2.3";

in stdenv.mkDerivation {
name = "libxc-${version}";
src = fetchurl {
url = "http://www.tddft.org/programs/octopus/down.php?file=libxc/${version}/libxc-${version}.tar.gz";
sha256 = "1xyac89yx03vm86rvk07ps1d39xss3amw46a1k53mv30mgr94rl3";
sha256 = "0mj26jga0nj76blf2rp9cmgf0v0yhsp7xrg92zgih7fjlydrxr02";
};

buildInputs = [ gfortran ];
Expand Down

0 comments on commit 7f1bcb1

Please sign in to comment.