packages/excalidraw: init at 0.12.0 (#30)

* packages/excalidraw: init at 0.12.0

* packages/excalidraw: fix build

* packages/excalidraw: build without sentry

* packages/excalidraw: disable analytics

* packages/excalidraw: add webroot attr
This commit is contained in:
Max Headroom 2022-08-28 23:14:37 +02:00 committed by GitHub
parent 648e488f6f
commit a0c2dc3771
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 43 additions and 0 deletions

View file

@ -16,6 +16,27 @@ let
in
{
excalidraw.build = {
REACT_APP_DISABLE_SENTRY = "true";
REACT_APP_FIREBASE_CONFIG = "";
REACT_APP_GOOGLE_ANALYTICS_ID = "";
nativeBuildInputs = [ pkgs.yarn ];
installPhase = ''
distRoot=$out/share/www
dist=$distRoot/excalidraw
mkdir -p $distRoot
mv $out/lib/node_modules/excalidraw/build $dist
chmod +w -R $out/lib
rm -rf $out/lib
find $dist -type f -name "*.map" -delete
'';
passthru.webPath = "share/www/excalidraw";
};
sharp.build = with pkgs; {
nativeBuildInputs = old: old ++ [
pkg-config

View file

@ -34,6 +34,14 @@
packages = filters.doFilter filters.packages rec {
cinny = pkgs.callPackage ./web-apps/cinny { inherit pins; };
excalidraw = let
dream = dream2nix.makeOutputs {
source = pins.excalidraw;
};
inherit (dream.packages) excalidraw;
in
excalidraw // { webroot = "${excalidraw}/${excalidraw.webPath}"; };
uptime-kuma = let
dream = dream2nix.makeOutputs {
source = pins.uptime-kuma;

View file

@ -14,6 +14,20 @@
"url": "https://api.github.com/repos/cinnyapp/cinny/tarball/v2.1.2",
"hash": "1aw0v1wj8fbhi4v5jjn0dpyi4irnad5ni5f1ph6r1wyrgzncl9vg"
},
"excalidraw": {
"type": "GitRelease",
"repository": {
"type": "GitHub",
"owner": "excalidraw",
"repo": "excalidraw"
},
"pre_releases": false,
"version_upper_bound": null,
"version": "v0.12.0",
"revision": "fe3d0b5e8b25d1530b5902359fdd21ed99cd3e93",
"url": "https://api.github.com/repos/excalidraw/excalidraw/tarball/v0.12.0",
"hash": "1y943iqamqd9kv8ph1mwxr5c4ypha6245qwkfdyjzmky2hzm3388"
},
"gohugo-theme-ananke": {
"type": "GitRelease",
"repository": {