-
Notifications
You must be signed in to change notification settings - Fork 0
/
default.nix
35 lines (31 loc) · 1.01 KB
/
default.nix
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
26
27
28
29
30
31
32
33
34
35
let
pkgs = import <nixpkgs> {};
# Base virtualenv package from 20.03 does not seem to work correctly ...
# See https://github.com/NixOS/nixpkgs/issues/66366
# The definition below comes from the issue above
virtualenv = pkgs.python3Packages.virtualenv.overridePythonAttrs (old: rec {
pname = "virtualenv";
version = "20.0.21";
src = pkgs.python3Packages.fetchPypi {
inherit pname version;
sha256 = "1kxnxxwa25ghlkpyrxa8pi49v87b7ps2gyla7d1h6kbz9sfn45m1";
};
propagatedBuildInputs = with pkgs.python3Packages; [
appdirs distlib filelock setuptools_scm six contextlib2 importlib-metadata
importlib-resources pathlib2
];
patches = [];
});
my-python-packages = python-packages: [ virtualenv ];
python-with-my-packages =
pkgs.python37.withPackages my-python-packages;
in
pkgs.stdenv.mkDerivation {
name = "talk";
buildInputs = with pkgs; [
texlive.combined.scheme-full pdfpc
ocamlPackages.merlin
ocamlPackages.ocaml
python-with-my-packages
];
}