mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-20 20:53:48 +00:00
a5a7c33e77
Co-authored-by: Timo Kaufmann <timokau@zoho.com>
20 lines
451 B
Nix
20 lines
451 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 version "$out/lib/node_modules/three"
|
|
cp -r build "$out/lib/node_modules/three/$(cat version)"
|
|
'';
|
|
}
|