Skip to content

Instantly share code, notes, and snippets.

@tbenst
Created August 20, 2020 00:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tbenst/6610f9577b4309ab7b2d97ee200ba56a to your computer and use it in GitHub Desktop.
Save tbenst/6610f9577b4309ab7b2d97ee200ba56a to your computer and use it in GitHub Desktop.
let
nixpkgsSHA = "4fed373652870addb0b0cf809899bd0d49cfaf59"; # 2020-07-18
pkgs = import (fetchTarball
"https://github.com/tbenst/nixpkgs/archive/${nixpkgsSHA}.tar.gz") {
system = builtins.currentSystem;
overlays = [ (self: super: {
hdf5 = super.hdf5.override { mpi = super.mpich; };
pythonOverrides = python-self: python-super: {
mpi4py = python-super.mpi4py.override {
mpi = super.mpich;
};
};
python3 = super.python3.override {
packageOverrides = self.pythonOverrides;
};
}) ];
};
in
pkgs.stdenv.mkDerivation {
name = "circus";
buildInputs = [
pkgs.pythonPackages.h5py
];
}
let
nixpkgsSHA = "4fed373652870addb0b0cf809899bd0d49cfaf59"; # 2020-07-18
pkgs = import (fetchTarball
"https://github.com/tbenst/nixpkgs/archive/${nixpkgsSHA}.tar.gz") {
system = builtins.currentSystem;
overlays = [ (self: super: {
hdf5 = super.hdf5.override { mpi = super.openmpi; };
}) ];
};
in
pkgs.stdenv.mkDerivation {
name = "circus";
buildInputs = [
pkgs.pythonPackages.h5py
];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment