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:
parent
648e488f6f
commit
a0c2dc3771
3 changed files with 43 additions and 0 deletions
|
@ -16,6 +16,27 @@ let
|
||||||
in
|
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; {
|
sharp.build = with pkgs; {
|
||||||
nativeBuildInputs = old: old ++ [
|
nativeBuildInputs = old: old ++ [
|
||||||
pkg-config
|
pkg-config
|
||||||
|
|
|
@ -34,6 +34,14 @@
|
||||||
packages = filters.doFilter filters.packages rec {
|
packages = filters.doFilter filters.packages rec {
|
||||||
cinny = pkgs.callPackage ./web-apps/cinny { inherit pins; };
|
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
|
uptime-kuma = let
|
||||||
dream = dream2nix.makeOutputs {
|
dream = dream2nix.makeOutputs {
|
||||||
source = pins.uptime-kuma;
|
source = pins.uptime-kuma;
|
||||||
|
|
|
@ -14,6 +14,20 @@
|
||||||
"url": "https://api.github.com/repos/cinnyapp/cinny/tarball/v2.1.2",
|
"url": "https://api.github.com/repos/cinnyapp/cinny/tarball/v2.1.2",
|
||||||
"hash": "1aw0v1wj8fbhi4v5jjn0dpyi4irnad5ni5f1ph6r1wyrgzncl9vg"
|
"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": {
|
"gohugo-theme-ananke": {
|
||||||
"type": "GitRelease",
|
"type": "GitRelease",
|
||||||
"repository": {
|
"repository": {
|
||||||
|
|
Loading…
Reference in a new issue