Initial commit
commit
b32aeefa59
@ -0,0 +1,13 @@
|
||||
# Entorno Python3 en Nix
|
||||
|
||||
Esta definición define un entorno de Python3 con pip, lo que permite generar environments locales e instalar paquetes de Python3.
|
||||
|
||||
## Uso
|
||||
|
||||
Ejecutar:
|
||||
|
||||
```
|
||||
nix-shell shell_python.nix
|
||||
```
|
||||
|
||||
para cargar el entorno local.
|
@ -0,0 +1,18 @@
|
||||
# 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