Permalink
Browse files

astrochem: init at e2a5f0d3

  • Loading branch information...
smaret committed Feb 1, 2019
1 parent 51d2eed commit b0145e0605dfde0716ed067509e949061b2529b0
@@ -0,0 +1,40 @@
{ stdenv, fetchurl, fetchFromGitHub, pythonPackages, sundials, autoconf, automake, gfortran, libtool, hdf5 }:

stdenv.mkDerivation rec {

name = "astrochem";

src = fetchFromGitHub {
owner = "smaret";
repo = "astrochem";
rev = "e2a5f0d34b060983f86a6aa7acbf854970c4cb4f";
sha256 = "0fg2rl3ika3qy55g1svcjcrki0ls2sdqaymbsk6pbilsk51qmq0p";
};

sundials2 = sundials.overrideAttrs (oldAttrs: rec {
name = "sundials-2.7.0";
src = fetchurl {
url = "https://computation.llnl.gov/projects/sundials/download/sundials-2.7.0.tar.gz";
sha256 = "01513g0j7nr3rh7hqjld6mw0mcx5j9z9y87bwjc16w2x2z3wm7yk";
};
});

nativeBuildInputs = [ autoconf automake gfortran libtool ];

buildInputs = [
pythonPackages.python
hdf5
sundials2
];

propagatedBuildInputs = [
pythonPackages.numpy
pythonPackages.h5py
pythonPackages.cython
];

preConfigure = "./bootstrap";

# Not sure if that's needed.
passthru = { pythonPath = []; };
}

### SCIENCE / MISC

astrochem = callPackage ../applications/science/astrochem { };

boinc = callPackage ../applications/science/misc/boinc { };

celestia = callPackage ../applications/science/astronomy/celestia {
@@ -945,6 +945,8 @@ in {

asn1ate = callPackage ../development/python-modules/asn1ate { };

astrochem = toPythonModule (pkgs.astrochem.override { pythonPackages = self; });

atomiclong = callPackage ../development/python-modules/atomiclong { };

atomicwrites = callPackage ../development/python-modules/atomicwrites { };

0 comments on commit b0145e0

Please sign in to comment.