~sirodoht/mataroa

mataroa/default.nix -rw-r--r-- 615 bytes
521adb51Theodore Keloglou fix page ul ol serif theme 3 days ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
with import <nixpkgs> {};
let
  my-python-packages = python-packages: [
    python-packages.pip
    python-packages.setuptools
    python-packages.wheel
    python-packages.virtualenv
  ];
  my-python = python39.withPackages my-python-packages;
in
  pkgs.mkShell {
    buildInputs = [
      shellcheck
      ncurses
      postgresql_12
      bashInteractive
      my-python
    ];
    shellHook = ''
      export PIP_PREFIX="$(pwd)/.pyenv/pip_packages"
      export PYTHONPATH="$PIP_PREFIX/lib/python3.9/site-packages:$PYTHONPATH"
      export PATH="$PIP_PREFIX/bin:$PATH"
      unset SOURCE_DATE_EPOCH
    '';
  }