Skip to content

Instantly share code, notes, and snippets.

@mtn

mtn/config.nix Secret

Created June 11, 2020 09:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mtn/db8686567d74014ca6b689990dc4f187 to your computer and use it in GitHub Desktop.
Save mtn/db8686567d74014ca6b689990dc4f187 to your computer and use it in GitHub Desktop.
{
packageOverrides = pkgs: {
pkgs.python37.pkgs.opencv4 = pkgs.python37.pkgs.opencv4.override { enableFfmpeg = true; };
};
}
with import (builtins.fetchGit {
name = "nixos-20-03-2020-06-09";
url = "https://github.com/nixos/nixpkgs-channels/";
ref = "refs/heads/nixos-20.03";
rev = "70717a337f7ae4e486ba71a500367cad697e5f09";
}) { config = import ./config.nix; };
let
py = pkgs.python37;
in
stdenv.mkDerivation rec {
name = "python-environment";
buildInputs = [
py
swig4
cudatoolkit_10
py.pkgs.opencv4
py.pkgs.cython
py.pkgs.tensorflowWithCuda
py.pkgs.dill
py.pkgs.fire
py.pkgs.matplotlib
py.pkgs.numba
py.pkgs.psutil
py.pkgs.requests
py.pkgs.scikitimage
py.pkgs.scipy
py.pkgs.tqdm
py.pkgs.flask
];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment