Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 3947441cb90f
Choose a base ref
...
head repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: ac28607a039e
Choose a head ref
  • 3 commits
  • 2 files changed
  • 1 contributor

Commits on Jun 20, 2019

  1. Copy the full SHA
    2d78d92 View commit details
  2. sage: fix online threejs

    timokau committed Jun 20, 2019
    Copy the full SHA
    9955657 View commit details
  3. Merge pull request #63560 from timokau/sage-threejs-r105

    sage: fix threejs r105
    timokau authored Jun 20, 2019

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    ac28607 View commit details
Showing with 14 additions and 0 deletions.
  1. +7 −0 pkgs/applications/science/math/sage/sage-src.nix
  2. +7 −0 pkgs/applications/science/math/sage/sage-with-env.nix
7 changes: 7 additions & 0 deletions pkgs/applications/science/math/sage/sage-src.nix
Original file line number Diff line number Diff line change
@@ -152,6 +152,13 @@ stdenv.mkDerivation rec {
rev = "c11d9cfa23ff9f77681a8f12742f68143eed4504";
sha256 = "0xzra7mbgqvahk9v45bjwir2mqz73hrhhy314jq5nxrb35ysdxyi";
})

# https://trac.sagemath.org/ticket/26718
(fetchpatch {
name = "threejs-r100.patch";
url = "https://git.sagemath.org/sage.git/patch/?h=86c5bb000259e6de5d7c60afc608a4b0d010b690";
sha256 = "0sgqqd4df2bxsq19b6kfy7dvgyxprlpg7f3xx7g3fs8ij937m352";
})
];

patches = nixPatches ++ bugfixPatches ++ packageUpgradePatches;
7 changes: 7 additions & 0 deletions pkgs/applications/science/math/sage/sage-with-env.nix
Original file line number Diff line number Diff line change
@@ -99,6 +99,13 @@ stdenv.mkDerivation rec {
for pkg in ${lib.concatStringsSep " " input_names}; do
touch "installed/$pkg"
done
# threejs version is in format 0.<version>.minor, but sage currently still
# relies on installed_packages for the online version of threejs to work
# and expects the format r<version>. This is a hotfix for now.
# upstream: https://trac.sagemath.org/ticket/26434
rm "installed/threejs"*
touch "installed/threejs-r${lib.versions.minor three.version}"
'';

installPhase = ''