packages/excalidraw: init at 0.12.0 #75

Merged
max merged 5 commits from pkg-excalidraw into master 2022-08-29 00:14:37 +03:00
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": {