summaryrefslogtreecommitdiffstats
path: root/pkgs/misc/sagetex
diff options
context:
space:
mode:
authorAlexander Nortung <alex_nortung@live.dk>2021-12-23 10:43:49 +0100
committerAlexander Nortung <alex_nortung@live.dk>2022-01-25 13:47:36 +0100
commit375b48a52df6d2230493a71d549807402eed318f (patch)
treee89efdc1ca98bd8a8b4cb4506eeab452a0f5e9ff /pkgs/misc/sagetex
parent41513de1fd8947ef9ad6af465a20b564dc84b6f0 (diff)
sagetex: init at 3.6
sagetex: init at 3.6 sagetex: refactor Will now build from source sagetex: etc Changed description. Co-authored-by: legendofmiracles <30902201+legendofmiracles@users.noreply.github.com>
Diffstat (limited to 'pkgs/misc/sagetex')
-rw-r--r--pkgs/misc/sagetex/default.nix40
1 files changed, 40 insertions, 0 deletions
diff --git a/pkgs/misc/sagetex/default.nix b/pkgs/misc/sagetex/default.nix
new file mode 100644
index 000000000000..02e60e46bbe5
--- /dev/null
+++ b/pkgs/misc/sagetex/default.nix
@@ -0,0 +1,40 @@
+{ lib
+, stdenv
+, fetchFromGitHub
+, texlive
+}:
+
+stdenv.mkDerivation rec {
+ version = "3.6";
+ pname = "sagetex";
+ passthru.tlType = "run";
+
+ src = fetchFromGitHub {
+ owner = "sagemath";
+ repo = "sagetex";
+ rev = "v${version}";
+ sha256 = "8iHcJbaY/dh0vmvYyd6zj1ZbuJRaJGb6bUBK1v4gXWU=";
+ };
+
+ buildInputs = [
+ texlive.combined.scheme-basic
+ ];
+
+ buildPhase = ''
+ make sagetex.sty
+ '';
+
+ installPhase = ''
+ path="$out/tex/latex/sagetex"
+ mkdir -p "$path"
+ cp -va *.sty *.cfg *.def "$path/"
+ '';
+
+ meta = with lib; {
+ description = "Embed code, results of computations, and plots from Sage into LaTeX documents";
+ homepage = "https://github.com/sagemath/sagetex";
+ license = licenses.gpl2Plus;
+ maintainers = with maintainers; [ alexnortung ];
+ platforms = platforms.all;
+ };
+}