From 52ff27528c48d80749dce3a9b62766d8edef6813 Mon Sep 17 00:00:00 2001 From: Mikhail Klementev Date: Thu, 19 Mar 2020 09:32:24 +0000 Subject: [PATCH] Allow nonfree python packages (for torchvision) --- packages.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages.nix b/packages.nix index 466225f..cfdcc67 100644 --- a/packages.nix +++ b/packages.nix @@ -1,6 +1,7 @@ { config, pkgs, ... }: let + nonfree = import { config.allowUnfree = true; }; unstable = import {}; unstable-nonfree = import { config.allowUnfree = true; }; emacsWithImagemagick = (unstable.emacs.override { @@ -64,7 +65,7 @@ in { spice spice-gtk - (python3.withPackages(ps: with ps; [ + (nonfree.python3.withPackages(ps: with ps; [ ipython pillow opencv3 torchvision PyGithub