9405df4a82
GitOrigin-RevId: 8e4fe32876ca15e3d5eb3ecd3ca0b224417f5f17
18 lines
394 B
Nix
18 lines
394 B
Nix
{ stdenv, fetchFromGitHub }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "threejs-sage";
|
|
version = "r122";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "sagemath";
|
|
repo = "threejs-sage";
|
|
rev = version;
|
|
sha256 = "sha256-xPAPt36Fon3hYQq6SOmGkIyUzAII2LMl10nqYG4UPI0=";
|
|
};
|
|
|
|
installPhase = ''
|
|
mkdir -p $out/lib/node_modules/three
|
|
cp -r build version $out/lib/node_modules/three
|
|
'';
|
|
}
|