25 lines
644 B
Nix
25 lines
644 B
Nix
{ nixpkgs ? import <nixpkgs> {} }:
|
|
|
|
with nixpkgs;
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "python-virtualenv-shell";
|
|
env = buildEnv { name = name; paths = buildInputs; };
|
|
buildInputs = [
|
|
python311
|
|
python311Packages.virtualenv
|
|
python311Packages.pandas
|
|
python311Packages.numpy
|
|
python311Packages.xlrd
|
|
python311Packages.python-lsp-server
|
|
python311Packages.python-lsp-black
|
|
# libGL
|
|
# glib
|
|
];
|
|
shellHook = ''
|
|
# set SOURCE_DATE_EPOCH so that we can use python wheels
|
|
SOURCE_DATE_EPOCH=$(date +%s)
|
|
'';
|
|
LD_LIBRARY_PATH = "$LD_LIBRARY_PATH:pkgs.stdenv.cc.cc.lib/lib:pkgs.glib.out/lib:pkgs.libGL/lib";
|
|
}
|