Extras para NIX
parent
f2e15adaba
commit
0aac969f23
@ -1,4 +1,4 @@
|
||||
#!/bin/bash
|
||||
#!/usr/bin/env bash
|
||||
|
||||
source venv/bin/activate
|
||||
mpirun python3 mpirunner.py
|
||||
|
@ -0,0 +1,17 @@
|
||||
# nix-shell -p [ (python3Full.withPackages(ps: with ps; [ pip ])) gfortran zlib]
|
||||
|
||||
with import <nixpkgs> {};
|
||||
|
||||
stdenv.mkDerivation {
|
||||
name = "python-env-petsc";
|
||||
|
||||
nativeBuildInputs = [ m4 removeReferencesTo ];
|
||||
buildInputs = [ (python3Full.withPackages(ps: with ps; [ pip ]))
|
||||
gfortran
|
||||
zlib
|
||||
gcc
|
||||
];
|
||||
dontAddPrefix=true;
|
||||
|
||||
env.LD_LIBRARY_PATH = zlib + "/lib:" + stdenv.cc.cc.lib + "/lib";
|
||||
}
|
Loading…
Reference in New Issue