2021-04-17 15:23:29 +02:00
|
|
|
{ stdenv, fetchFromGitHub }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "threejs-sage";
|
|
|
|
version = "r122";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "sagemath";
|
|
|
|
repo = "threejs-sage";
|
|
|
|
rev = version;
|
|
|
|
sha256 = "sha256-xPAPt36Fon3hYQq6SOmGkIyUzAII2LMl10nqYG4UPI0=";
|
|
|
|
};
|
|
|
|
|
|
|
|
installPhase = ''
|
2021-09-28 14:00:01 +02:00
|
|
|
mkdir -p "$out/lib/node_modules/three/"
|
|
|
|
cp version "$out/lib/node_modules/three"
|
|
|
|
cp -r build "$out/lib/node_modules/three/$(cat version)"
|
2021-04-17 15:23:29 +02:00
|
|
|
'';
|
|
|
|
}
|