Skip to content

Commit

Permalink
nodePackages.three: use buildNpmPackage
Browse files Browse the repository at this point in the history
  • Loading branch information
Lord-Valen committed Aug 30, 2023
1 parent b9f22e1 commit f4e3aac
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 19 deletions.
22 changes: 22 additions & 0 deletions pkgs/development/libraries/threejs/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{ buildNpmPackage, fetchFromGitHub, lib, ... }:

buildNpmPackage rec {
pname = "threejs";
version = "155";

src = fetchFromGitHub {
owner = "mrdoob";
repo = "three.js";
rev = "r${version}";
hash = "sha256-gtJCp+V8tdn17oDx+/Z3SP/Je/2vh6mf6T/FneJ0kpM=";
};

npmDepsHash = "sha256-1rJkDEwOJCc51OnX4v1pJw7WsunD3ud7UUSs7EC3uck=";

meta = with lib; {
description = "General purpose JavaScript 3D library";
homepage = "https://threejs.org";
license = licenses.mit;
maintainers = with maintainers; [ timokau ];
};
}
1 change: 1 addition & 0 deletions pkgs/development/node-packages/aliases.nix
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ mapAliases {
ssb-server = throw "ssb-server was removed because it was broken"; # added 2023-08-21
stf = throw "stf was removed because it was broken"; # added 2023-08-21
thelounge = pkgs.thelounge; # Added 2023-05-22
three = pkgs.threejs; # Added 2023-08-30
triton = pkgs.triton; # Added 2023-05-06
typescript = pkgs.typescript; # Added 2023-06-21
inherit (pkgs) ungit; # added 2023-08-20
Expand Down
1 change: 0 additions & 1 deletion pkgs/development/node-packages/node-packages.json
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,6 @@
, "thelounge-theme-zenburn"
, "thelounge-theme-zenburn-monospace"
, "thelounge-theme-zenburn-sourcecodepro"
, "three"
, "tiddlywiki"
, "titanium"
, "tsun"
Expand Down
18 changes: 0 additions & 18 deletions pkgs/development/node-packages/node-packages.nix

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -25438,6 +25438,8 @@ with pkgs;

theft = callPackage ../development/libraries/theft { };

threejs = callPackage ../development/libraries/threejs { };

thrift = callPackage ../development/libraries/thrift { };

thrift-0_10 = callPackage ../development/libraries/thrift/0.10.nix { };
Expand Down

0 comments on commit f4e3aac

Please sign in to comment.