91 lines
2.3 KiB
Nix
91 lines
2.3 KiB
Nix
{ lib, config, pkgs, ... }: let
|
|
py3 = pkgs.python3;
|
|
py3Pkgs = py3.pkgs;
|
|
equation = py3Pkgs.buildPythonPackage {
|
|
pname = "Equation";
|
|
version = "1.2.01";
|
|
nativeBuildInputs = [
|
|
py3Pkgs.setuptools
|
|
py3Pkgs.numpy
|
|
];
|
|
src = pkgs.fetchzip {
|
|
url = "https://files.pythonhosted.org/packages/2e/cc/115fb1722051f99b9699864586e7f96ca0080645387698af922fade4f7b2/Equation-1.2.01.zip";
|
|
sha256 = "YFxZB3vaC5s49K1AQLFF4WGUr2RpomJTLQdZ24ITXr4=";
|
|
};
|
|
};
|
|
morphio = py3.pkgs.toPythonModule ( pkgs.stdenv.mkDerivation rec {
|
|
pname = "MorphIO";
|
|
version = "3.3.4";
|
|
nativeBuildInputs = (with pkgs; [
|
|
cmake
|
|
ninja
|
|
py3
|
|
py3.pkgs.numpy
|
|
hdf5
|
|
]);
|
|
cmakeFlags = [
|
|
"-DMorphIO_CXX_WARNINGS=OFF"
|
|
];
|
|
postInstall = ''
|
|
mkdir -p $out/${py3.sitePackages}
|
|
mv ../morphio $out/${py3.sitePackages}
|
|
cp binds/python/_morphio.* $out/${py3.sitePackages}/morphio/
|
|
'';
|
|
src = pkgs.fetchFromGitHub {
|
|
owner = "BlueBrain";
|
|
repo = "MorphIO";
|
|
rev = "v${version}";
|
|
deepClone = true;
|
|
fetchSubmodules = true;
|
|
sha256 = "C3zDziG7LF7v22ZvplBrtOYq7iKGnAavfpiBCcShHaQ=";
|
|
};
|
|
});
|
|
in {
|
|
nixpkgs.overlays = [(self: super: rec {
|
|
# Add CUDA Support to Blender
|
|
blender_cuda = super.blender.override {
|
|
cudaSupport = true;
|
|
};
|
|
# Add Opencamlib for BlenderCAM Support
|
|
blender = blender_cuda.overrideAttrs (old: {
|
|
pythonPath = old.pythonPath ++ (with py3Pkgs; [
|
|
# OpenCAMLib support
|
|
shapely
|
|
equation
|
|
opencamlib
|
|
# NeuroMorphoVis support
|
|
matplotlib
|
|
seaborn
|
|
pandas
|
|
pillow
|
|
h5py
|
|
morphio
|
|
# TODO add BluePy support?
|
|
]);
|
|
});
|
|
# Update RX and Aseprite
|
|
rx = super.rx.overrideAttrs (old: {
|
|
version = "git";
|
|
src = super.fetchFromGitHub {
|
|
owner = "cloudhead";
|
|
repo = old.pname;
|
|
rev = "18625a68921873ebe21a7ea8096409a9f0314541";
|
|
sha256 = "sha256-LTpaV/fgYUgA2M6Wz5qLHnTNywh13900g+umhgLvciM=";
|
|
};
|
|
});
|
|
})];
|
|
|
|
environment.systemPackages = with pkgs; [
|
|
blender
|
|
# GTK theme support (basic) for GTK apps e.g. inkscape
|
|
gnome.adwaita-icon-theme
|
|
|
|
rx
|
|
aseprite-unfree
|
|
gimp
|
|
|
|
synfigstudio
|
|
inkscape-with-extensions
|
|
];
|
|
}
|