2022-01-14 19:29:21 +02:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
pkgs,
|
|
|
|
|
|
|
|
# dream2nix
|
|
|
|
satisfiesSemver,
|
|
|
|
...
|
|
|
|
}:
|
|
|
|
|
2022-03-13 02:45:15 +02:00
|
|
|
let
|
|
|
|
versionGate = pkg: target:
|
|
|
|
assert
|
2022-06-18 01:56:50 +03:00
|
|
|
lib.assertMsg (lib.versionOlder pkg.version target.version)
|
2022-03-13 02:45:15 +02:00
|
|
|
"${pkg.name} has reached the desired version upstream";
|
|
|
|
target;
|
|
|
|
in
|
|
|
|
|
2022-01-14 19:29:21 +02:00
|
|
|
{
|
2022-08-29 00:14:37 +03:00
|
|
|
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
|
2022-10-30 15:33:43 +02:00
|
|
|
mv $nodeModules/excalidraw/build $dist
|
2022-08-29 00:14:37 +03:00
|
|
|
find $dist -type f -name "*.map" -delete
|
|
|
|
'';
|
|
|
|
|
|
|
|
passthru.webPath = "share/www/excalidraw";
|
|
|
|
};
|
|
|
|
|
2022-01-14 19:29:21 +02:00
|
|
|
sharp.build = with pkgs; {
|
|
|
|
nativeBuildInputs = old: old ++ [
|
|
|
|
pkg-config
|
|
|
|
];
|
|
|
|
buildInputs = old: old ++ [
|
2022-06-18 01:57:21 +03:00
|
|
|
vips
|
2022-01-14 19:29:21 +02:00
|
|
|
];
|
|
|
|
};
|
2022-04-27 22:00:56 +03:00
|
|
|
|
|
|
|
puppeteer.dummy-build = {
|
|
|
|
# HACK: doesn't build, but we don't need it anywhere
|
|
|
|
configurePhase = "exit 0";
|
|
|
|
};
|
2022-01-14 19:29:21 +02:00
|
|
|
}
|