From 4db381faddee6e951aa76d5a64073d22fe23f314 Mon Sep 17 00:00:00 2001 From: Naoki Pross Date: Wed, 20 Oct 2021 00:56:43 +0200 Subject: Prepare nix env for video --- video/shell.nix | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 video/shell.nix (limited to 'video/shell.nix') diff --git a/video/shell.nix b/video/shell.nix new file mode 100644 index 0000000..bdb2575 --- /dev/null +++ b/video/shell.nix @@ -0,0 +1,27 @@ +with import {}; +let + manimpango = callPackage manimpango/default.nix { + buildPythonPackage = pkgs.python3Packages.buildPythonPackage; + fetchPypi = pkgs.python3Packages.fetchPypi; + }; + + mapbox-earcut = callPackage manimgl/mapbox-earcut.nix { + buildPythonPackage = pkgs.python3Packages.buildPythonPackage; + fetchPypi = pkgs.python3Packages.fetchPypi; + }; + + manimgl = callPackage manimgl/default.nix { + buildPythonApplication = pkgs.python3Packages.buildPythonApplication; + buildPythonPackage = pkgs.python3Packages.buildPythonPackage; + fetchPypi = pkgs.python3Packages.fetchPypi; + pythonOlder = pkgs.python3Packages.pythonOlder; + manimpango = manimpango; + mapbox-earcut = mapbox-earcut; + }; + +in mkShell { + buildInputs = [ manimpango manimgl ]; + shellHook = '' + manimgl qam.py + ''; +} -- cgit v1.2.1