From f060465dba3dfe483ff7e55e79de4020858570ad Mon Sep 17 00:00:00 2001 From: Pim Snel Date: Thu, 23 Oct 2025 21:56:51 +0200 Subject: [PATCH] documenso: 0.9 -> 1.12.6 --- .../do/documenso/package-lock.json.patch | 789 ++++++++++++++++++ pkgs/by-name/do/documenso/package.json.patch | 40 + pkgs/by-name/do/documenso/package.nix | 116 ++- pkgs/by-name/do/documenso/turbo.json.patch | 104 +++ .../do/documenso/update-from-upstream.sh | 55 ++ 5 files changed, 1081 insertions(+), 23 deletions(-) create mode 100644 pkgs/by-name/do/documenso/package-lock.json.patch create mode 100644 pkgs/by-name/do/documenso/package.json.patch create mode 100644 pkgs/by-name/do/documenso/turbo.json.patch create mode 100755 pkgs/by-name/do/documenso/update-from-upstream.sh diff --git a/pkgs/by-name/do/documenso/package-lock.json.patch b/pkgs/by-name/do/documenso/package-lock.json.patch new file mode 100644 index 000000000000..875cba7457ad --- /dev/null +++ b/pkgs/by-name/do/documenso/package-lock.json.patch @@ -0,0 +1,789 @@ +diff --git a/package-lock.json b/package-lock.json +index 1a647e8..d44033c 100644 +--- a/package-lock.json ++++ b/package-lock.json +@@ -16,7 +16,6 @@ + "@documenso/prisma": "^0.0.0", + "@lingui/conf": "^5.2.0", + "@lingui/core": "^5.2.0", +- "inngest-cli": "^0.29.1", + "luxon": "^3.5.0", + "mupdf": "^1.0.0", + "react": "^18", +@@ -41,7 +40,7 @@ + "prisma-extension-kysely": "^3.0.0", + "prisma-kysely": "^1.8.0", + "rimraf": "^5.0.1", +- "turbo": "^1.9.3", ++ "turbo": "^2.5.8", + "vite": "^6.3.5" + }, + "engines": { +@@ -13223,15 +13222,6 @@ + "node": ">=0.4.0" + } + }, +- "node_modules/adm-zip": { +- "version": "0.5.16", +- "resolved": "https://registry.npmjs.org/adm-zip/-/adm-zip-0.5.16.tgz", +- "integrity": "sha512-TGw5yVi4saajsSEgz25grObGHEUaDrniwvA2qwSC060KfqGPdglhvPMA2lPIoxs3PQIItj2iag35fONcQqgUaQ==", +- "license": "MIT", +- "engines": { +- "node": ">=12.0" +- } +- }, + "node_modules/agent-base": { + "version": "7.1.3", + "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-7.1.3.tgz", +@@ -14705,6 +14695,7 @@ + "resolved": "https://registry.npmjs.org/chownr/-/chownr-2.0.0.tgz", + "integrity": "sha512-bIomtDF5KGpdogkLd9VspvFzk9KfpyyGlS8YFVZl7TGPBHL5snIOnxeshwVgPteQ9b4Eydl+pVbIyE1DcvCWgQ==", + "license": "ISC", ++ "optional": true, + "engines": { + "node": ">=10" + } +@@ -19315,6 +19306,7 @@ + "resolved": "https://registry.npmjs.org/fs-minipass/-/fs-minipass-2.1.0.tgz", + "integrity": "sha512-V/JgOLFCS+R6Vcq0slCuaeWEdNC3ouDlJMNIsacH2VtALiu9mV4LPrHc5cDl8k5aw6J8jwgWWpiTo5RYhmIzvg==", + "license": "ISC", ++ "optional": true, + "dependencies": { + "minipass": "^3.0.0" + }, +@@ -19327,6 +19319,7 @@ + "resolved": "https://registry.npmjs.org/minipass/-/minipass-3.3.6.tgz", + "integrity": "sha512-DxiNidxSEK+tHG6zOIklvNOwm3hvCrbUrdtzY74U6HKTJxvIDfOUL5W5P2Ghd3DTkhhKPYGqeNUIh5qcM4YBfw==", + "license": "ISC", ++ "optional": true, + "dependencies": { + "yallist": "^4.0.0" + }, +@@ -19338,7 +19331,8 @@ + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", + "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", +- "license": "ISC" ++ "license": "ISC", ++ "optional": true + }, + "node_modules/fs.realpath": { + "version": "1.0.0", +@@ -21227,23 +21221,6 @@ + } + } + }, +- "node_modules/inngest-cli": { +- "version": "0.29.9", +- "resolved": "https://registry.npmjs.org/inngest-cli/-/inngest-cli-0.29.9.tgz", +- "integrity": "sha512-H02T7DGG53WV38RswpWmz7JsZXajx+uXDi1Zgq/ON5a+fNQi4hVRkxfoiZLngNeROVVXlokMTBwOShdsrnr7WA==", +- "hasInstallScript": true, +- "license": "SEE LICENSE IN LICENSE.md", +- "dependencies": { +- "adm-zip": "^0.5.10", +- "debug": "^4.3.4", +- "node-fetch": "2.6.7", +- "tar": "6.2.1" +- }, +- "bin": { +- "inngest": "bin/inngest", +- "inngest-cli": "bin/inngest" +- } +- }, + "node_modules/inngest/node_modules/@opentelemetry/api": { + "version": "1.9.0", + "resolved": "https://registry.npmjs.org/@opentelemetry/api/-/api-1.9.0.tgz", +@@ -25470,6 +25447,7 @@ + "resolved": "https://registry.npmjs.org/minizlib/-/minizlib-2.1.2.tgz", + "integrity": "sha512-bAxsR8BVfj60DWXHE3u30oHzfl4G7khkSuPW+qvpd7jFRHm7dLxOjUk1EHACJ/hxLY8phGJ0YhYHZo7jil7Qdg==", + "license": "MIT", ++ "optional": true, + "dependencies": { + "minipass": "^3.0.0", + "yallist": "^4.0.0" +@@ -25483,6 +25461,7 @@ + "resolved": "https://registry.npmjs.org/minipass/-/minipass-3.3.6.tgz", + "integrity": "sha512-DxiNidxSEK+tHG6zOIklvNOwm3hvCrbUrdtzY74U6HKTJxvIDfOUL5W5P2Ghd3DTkhhKPYGqeNUIh5qcM4YBfw==", + "license": "ISC", ++ "optional": true, + "dependencies": { + "yallist": "^4.0.0" + }, +@@ -25494,13 +25473,15 @@ + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", + "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", +- "license": "ISC" ++ "license": "ISC", ++ "optional": true + }, + "node_modules/mkdirp": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-1.0.4.tgz", + "integrity": "sha512-vVqVZQyf3WLx2Shd0qJ9xuvqgAyKPLAiqITEtqW0oIUjzo3PePDd6fW9iFz30ef7Ysp/oiWqbhszeGWW2T6Gzw==", + "license": "MIT", ++ "optional": true, + "bin": { + "mkdirp": "bin/cmd.js" + }, +@@ -32780,6 +32761,7 @@ + "resolved": "https://registry.npmjs.org/tar/-/tar-6.2.1.tgz", + "integrity": "sha512-DZ4yORTwrbTj/7MZYq2w+/ZFdI6OZ/f9SFHR+71gIVUZhOQPHzVCLpvRnPgyaMpfWxxk/4ONva3GQSyNIKRv6A==", + "license": "ISC", ++ "optional": true, + "dependencies": { + "chownr": "^2.0.0", + "fs-minipass": "^2.0.0", +@@ -32838,6 +32820,7 @@ + "resolved": "https://registry.npmjs.org/minipass/-/minipass-5.0.0.tgz", + "integrity": "sha512-3FnjYuehv9k6ovOEbyOswadCDPX1piCfhV8ncmYtHOjuPwylVWsghTLo7rabjC3Rx5xD4HDx8Wm1xnMF7S5qFQ==", + "license": "ISC", ++ "optional": true, + "engines": { + "node": ">=8" + } +@@ -32846,7 +32829,8 @@ + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", + "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", +- "license": "ISC" ++ "license": "ISC", ++ "optional": true + }, + "node_modules/temp-dir": { + "version": "2.0.0", +@@ -34050,102 +34034,102 @@ + } + }, + "node_modules/turbo": { +- "version": "1.13.4", +- "resolved": "https://registry.npmjs.org/turbo/-/turbo-1.13.4.tgz", +- "integrity": "sha512-1q7+9UJABuBAHrcC4Sxp5lOqYS5mvxRrwa33wpIyM18hlOCpRD/fTJNxZ0vhbMcJmz15o9kkVm743mPn7p6jpQ==", ++ "version": "2.5.8", ++ "resolved": "https://registry.npmjs.org/turbo/-/turbo-2.5.8.tgz", ++ "integrity": "sha512-5c9Fdsr9qfpT3hA0EyYSFRZj1dVVsb6KIWubA9JBYZ/9ZEAijgUEae0BBR/Xl/wekt4w65/lYLTFaP3JmwSO8w==", + "dev": true, +- "license": "MPL-2.0", ++ "license": "MIT", + "bin": { + "turbo": "bin/turbo" + }, + "optionalDependencies": { +- "turbo-darwin-64": "1.13.4", +- "turbo-darwin-arm64": "1.13.4", +- "turbo-linux-64": "1.13.4", +- "turbo-linux-arm64": "1.13.4", +- "turbo-windows-64": "1.13.4", +- "turbo-windows-arm64": "1.13.4" ++ "turbo-darwin-64": "2.5.8", ++ "turbo-darwin-arm64": "2.5.8", ++ "turbo-linux-64": "2.5.8", ++ "turbo-linux-arm64": "2.5.8", ++ "turbo-windows-64": "2.5.8", ++ "turbo-windows-arm64": "2.5.8" + } + }, + "node_modules/turbo-darwin-64": { +- "version": "1.13.4", +- "resolved": "https://registry.npmjs.org/turbo-darwin-64/-/turbo-darwin-64-1.13.4.tgz", +- "integrity": "sha512-A0eKd73R7CGnRinTiS7txkMElg+R5rKFp9HV7baDiEL4xTG1FIg/56Vm7A5RVgg8UNgG2qNnrfatJtb+dRmNdw==", ++ "version": "2.5.8", ++ "resolved": "https://registry.npmjs.org/turbo-darwin-64/-/turbo-darwin-64-2.5.8.tgz", ++ "integrity": "sha512-Dh5bCACiHO8rUXZLpKw+m3FiHtAp2CkanSyJre+SInEvEr5kIxjGvCK/8MFX8SFRjQuhjtvpIvYYZJB4AGCxNQ==", + "cpu": [ + "x64" + ], + "dev": true, +- "license": "MPL-2.0", ++ "license": "MIT", + "optional": true, + "os": [ + "darwin" + ] + }, + "node_modules/turbo-darwin-arm64": { +- "version": "1.13.4", +- "resolved": "https://registry.npmjs.org/turbo-darwin-arm64/-/turbo-darwin-arm64-1.13.4.tgz", +- "integrity": "sha512-eG769Q0NF6/Vyjsr3mKCnkG/eW6dKMBZk6dxWOdrHfrg6QgfkBUk0WUUujzdtVPiUIvsh4l46vQrNVd9EOtbyA==", ++ "version": "2.5.8", ++ "resolved": "https://registry.npmjs.org/turbo-darwin-arm64/-/turbo-darwin-arm64-2.5.8.tgz", ++ "integrity": "sha512-f1H/tQC9px7+hmXn6Kx/w8Jd/FneIUnvLlcI/7RGHunxfOkKJKvsoiNzySkoHQ8uq1pJnhJ0xNGTlYM48ZaJOQ==", + "cpu": [ + "arm64" + ], + "dev": true, +- "license": "MPL-2.0", ++ "license": "MIT", + "optional": true, + "os": [ + "darwin" + ] + }, + "node_modules/turbo-linux-64": { +- "version": "1.13.4", +- "resolved": "https://registry.npmjs.org/turbo-linux-64/-/turbo-linux-64-1.13.4.tgz", +- "integrity": "sha512-Bq0JphDeNw3XEi+Xb/e4xoKhs1DHN7OoLVUbTIQz+gazYjigVZvtwCvgrZI7eW9Xo1eOXM2zw2u1DGLLUfmGkQ==", ++ "version": "2.5.8", ++ "resolved": "https://registry.npmjs.org/turbo-linux-64/-/turbo-linux-64-2.5.8.tgz", ++ "integrity": "sha512-hMyvc7w7yadBlZBGl/bnR6O+dJTx3XkTeyTTH4zEjERO6ChEs0SrN8jTFj1lueNXKIHh1SnALmy6VctKMGnWfw==", + "cpu": [ + "x64" + ], + "dev": true, +- "license": "MPL-2.0", ++ "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/turbo-linux-arm64": { +- "version": "1.13.4", +- "resolved": "https://registry.npmjs.org/turbo-linux-arm64/-/turbo-linux-arm64-1.13.4.tgz", +- "integrity": "sha512-BJcXw1DDiHO/okYbaNdcWN6szjXyHWx9d460v6fCHY65G8CyqGU3y2uUTPK89o8lq/b2C8NK0yZD+Vp0f9VoIg==", ++ "version": "2.5.8", ++ "resolved": "https://registry.npmjs.org/turbo-linux-arm64/-/turbo-linux-arm64-2.5.8.tgz", ++ "integrity": "sha512-LQELGa7bAqV2f+3rTMRPnj5G/OHAe2U+0N9BwsZvfMvHSUbsQ3bBMWdSQaYNicok7wOZcHjz2TkESn1hYK6xIQ==", + "cpu": [ + "arm64" + ], + "dev": true, +- "license": "MPL-2.0", ++ "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/turbo-windows-64": { +- "version": "1.13.4", +- "resolved": "https://registry.npmjs.org/turbo-windows-64/-/turbo-windows-64-1.13.4.tgz", +- "integrity": "sha512-OFFhXHOFLN7A78vD/dlVuuSSVEB3s9ZBj18Tm1hk3aW1HTWTuAw0ReN6ZNlVObZUHvGy8d57OAGGxf2bT3etQw==", ++ "version": "2.5.8", ++ "resolved": "https://registry.npmjs.org/turbo-windows-64/-/turbo-windows-64-2.5.8.tgz", ++ "integrity": "sha512-3YdcaW34TrN1AWwqgYL9gUqmZsMT4T7g8Y5Azz+uwwEJW+4sgcJkIi9pYFyU4ZBSjBvkfuPZkGgfStir5BBDJQ==", + "cpu": [ + "x64" + ], + "dev": true, +- "license": "MPL-2.0", ++ "license": "MIT", + "optional": true, + "os": [ + "win32" + ] + }, + "node_modules/turbo-windows-arm64": { +- "version": "1.13.4", +- "resolved": "https://registry.npmjs.org/turbo-windows-arm64/-/turbo-windows-arm64-1.13.4.tgz", +- "integrity": "sha512-u5A+VOKHswJJmJ8o8rcilBfU5U3Y1TTAfP9wX8bFh8teYF1ghP0EhtMRLjhtp6RPa+XCxHHVA2CiC3gbh5eg5g==", ++ "version": "2.5.8", ++ "resolved": "https://registry.npmjs.org/turbo-windows-arm64/-/turbo-windows-arm64-2.5.8.tgz", ++ "integrity": "sha512-eFC5XzLmgXJfnAK3UMTmVECCwuBcORrWdewoiXBnUm934DY6QN8YowC/srhNnROMpaKaqNeRpoB5FxCww3eteQ==", + "cpu": [ + "arm64" + ], + "dev": true, +- "license": "MPL-2.0", ++ "license": "MIT", + "optional": true, + "os": [ + "win32" +@@ -36114,7 +36098,9 @@ + }, + "engines": { + "node": ">=18" +- } ++ }, ++ "resolved": "https://registry.npmjs.org/@playwright/test/-/test-1.52.0.tgz", ++ "integrity": "sha512-uh6W7sb55hl7D6vsAeA+V2p5JnlAqzhqFyF0VcJkKZXkgnFcVG9PziERRHQfPLfNGx1C292a4JqbWzhR8L4R1g==" + }, + "packages/app-tests/node_modules/start-server-and-test": { + "version": "2.0.12", +@@ -36136,25 +36122,33 @@ + }, + "engines": { + "node": ">=16" +- } ++ }, ++ "resolved": "https://registry.npmjs.org/start-server-and-test/-/start-server-and-test-2.0.12.tgz", ++ "integrity": "sha512-U6QiS5qsz+DN5RfJJrkAXdooxMDnLZ+n5nR8kaX//ZH19SilF6b58Z3zM9zTfrNIkJepzauHo4RceSgvgUSX9w==" + }, + "packages/app-tests/node_modules/start-server-and-test/node_modules/bluebird": { + "version": "3.7.2", +- "license": "MIT" ++ "license": "MIT", ++ "resolved": "https://registry.npmjs.org/bluebird/-/bluebird-3.7.2.tgz", ++ "integrity": "sha512-XpNj6GDQzdfW+r2Wnn7xiSAd7TM3jzkxGXBGTtWKuSXv1xUV+azxAm8jdWZN06QTQk+2N2XB9jRDkvbmQmcRtg==" + }, + "packages/app-tests/node_modules/start-server-and-test/node_modules/check-more-types": { + "version": "2.24.0", + "license": "MIT", + "engines": { + "node": ">= 0.8.0" +- } ++ }, ++ "resolved": "https://registry.npmjs.org/check-more-types/-/check-more-types-2.24.0.tgz", ++ "integrity": "sha512-Pj779qHxV2tuapviy1bSZNEL1maXr13bPYpsvSDB68HlYcYuhlDrmGd63i0JHMCLKzc7rUSNIrpdJlhVlNwrxA==" + }, + "packages/app-tests/node_modules/start-server-and-test/node_modules/lazy-ass": { + "version": "1.6.0", + "license": "MIT", + "engines": { + "node": "> 0.8" +- } ++ }, ++ "resolved": "https://registry.npmjs.org/lazy-ass/-/lazy-ass-1.6.0.tgz", ++ "integrity": "sha512-cc8oEVoctTvsFZ/Oje/kGnHbpWHYBe8IAJe4C0QNc3t8uM/0Y8+erSz/7Y1ALuXTEZTMvxXwO6YbX1ey3ujiZw==" + }, + "packages/app-tests/node_modules/start-server-and-test/node_modules/ps-tree": { + "version": "1.2.0", +@@ -36167,7 +36161,9 @@ + }, + "engines": { + "node": ">= 0.10" +- } ++ }, ++ "resolved": "https://registry.npmjs.org/ps-tree/-/ps-tree-1.2.0.tgz", ++ "integrity": "sha512-0VnamPPYHl4uaU/nSFeZZpR21QAWRz+sRv4iW9+v/GS/J5U5iZB5BNN6J0RMoOvdx2gWM2+ZFMIm58q24e4UYA==" + }, + "packages/app-tests/node_modules/start-server-and-test/node_modules/ps-tree/node_modules/event-stream": { + "version": "3.3.4", +@@ -36180,18 +36176,26 @@ + "split": "0.3", + "stream-combiner": "~0.0.4", + "through": "~2.3.1" +- } ++ }, ++ "resolved": "https://registry.npmjs.org/event-stream/-/event-stream-3.3.4.tgz", ++ "integrity": "sha512-QHpkERcGsR0T7Qm3HNJSyXKEEj8AHNxkY3PK8TS2KJvQ7NiSHe3DDpwVKKtoYprL/AreyzFBeIkBIWChAqn60g==" + }, + "packages/app-tests/node_modules/start-server-and-test/node_modules/ps-tree/node_modules/event-stream/node_modules/duplexer": { + "version": "0.1.2", +- "license": "MIT" ++ "license": "MIT", ++ "resolved": "https://registry.npmjs.org/duplexer/-/duplexer-0.1.2.tgz", ++ "integrity": "sha512-jtD6YG370ZCIi/9GTaJKQxWTZD045+4R4hTk/x1UyoqadyJ9x9CgSi1RlVDQF8U2sxLLSnFkCaMihqljHIWgMg==" + }, + "packages/app-tests/node_modules/start-server-and-test/node_modules/ps-tree/node_modules/event-stream/node_modules/from": { + "version": "0.1.7", +- "license": "MIT" ++ "license": "MIT", ++ "resolved": "https://registry.npmjs.org/from/-/from-0.1.7.tgz", ++ "integrity": "sha512-twe20eF1OxVxp/ML/kq2p1uc6KvFK/+vs8WjEbeKmV2He22MKm7YF2ANIt+EOqhJ5L3K/SuuPhk0hWQDjOM23g==" + }, + "packages/app-tests/node_modules/start-server-and-test/node_modules/ps-tree/node_modules/event-stream/node_modules/map-stream": { +- "version": "0.1.0" ++ "version": "0.1.0", ++ "resolved": "https://registry.npmjs.org/map-stream/-/map-stream-0.1.0.tgz", ++ "integrity": "sha512-CkYQrPYZfWnu/DAmVCpTSX/xHpKZ80eKh2lAkyA6AJTef6bW+6JpbQZN5rofum7da+SyN1bi5ctTm+lTfcCW3g==" + }, + "packages/app-tests/node_modules/start-server-and-test/node_modules/ps-tree/node_modules/event-stream/node_modules/pause-stream": { + "version": "0.0.11", +@@ -36201,7 +36205,9 @@ + ], + "dependencies": { + "through": "~2.3" +- } ++ }, ++ "resolved": "https://registry.npmjs.org/pause-stream/-/pause-stream-0.0.11.tgz", ++ "integrity": "sha512-e3FBlXLmN/D1S+zHzanP4E/4Z60oFAa3O051qt1pxa7DEJWKAyil6upYVXCWadEnuoqa4Pkc9oUx9zsxYeRv8A==" + }, + "packages/app-tests/node_modules/start-server-and-test/node_modules/ps-tree/node_modules/event-stream/node_modules/split": { + "version": "0.3.3", +@@ -36211,14 +36217,18 @@ + }, + "engines": { + "node": "*" +- } ++ }, ++ "resolved": "https://registry.npmjs.org/split/-/split-0.3.3.tgz", ++ "integrity": "sha512-wD2AeVmxXRBoX44wAycgjVpMhvbwdI2aZjCkvfNcH1YqHQvJVa1duWc73OyVGJUc05fhFaTZeQ/PYsrmyH0JVA==" + }, + "packages/app-tests/node_modules/start-server-and-test/node_modules/ps-tree/node_modules/event-stream/node_modules/stream-combiner": { + "version": "0.0.4", + "license": "MIT", + "dependencies": { + "duplexer": "~0.1.1" +- } ++ }, ++ "resolved": "https://registry.npmjs.org/stream-combiner/-/stream-combiner-0.0.4.tgz", ++ "integrity": "sha512-rT00SPnTVyRsaSz5zgSPma/aHSOic5U1prhYdRy5HS2kTZviFpmDgzilbtsJsxiroqACmayynDN/9VzIbX5DOw==" + }, + "packages/app-tests/node_modules/start-server-and-test/node_modules/wait-on": { + "version": "8.0.3", +@@ -36235,7 +36245,9 @@ + }, + "engines": { + "node": ">=12.0.0" +- } ++ }, ++ "resolved": "https://registry.npmjs.org/wait-on/-/wait-on-8.0.3.tgz", ++ "integrity": "sha512-nQFqAFzZDeRxsu7S3C7LbuxslHhk+gnJZHyethuGKAn2IVleIbTB9I3vJSQiSR+DifUqmdzfPMoMPJfLqMF2vw==" + }, + "packages/app-tests/node_modules/start-server-and-test/node_modules/wait-on/node_modules/joi": { + "version": "17.13.3", +@@ -36246,40 +36258,54 @@ + "@sideway/address": "^4.1.5", + "@sideway/formula": "^3.0.1", + "@sideway/pinpoint": "^2.0.0" +- } ++ }, ++ "resolved": "https://registry.npmjs.org/joi/-/joi-17.13.3.tgz", ++ "integrity": "sha512-otDA4ldcIx+ZXsKHWmp0YizCweVRZG96J10b0FevjfuncLO1oX59THoAmHkNubYJ+9gWsYsp5k8v4ib6oDv1fA==" + }, + "packages/app-tests/node_modules/start-server-and-test/node_modules/wait-on/node_modules/joi/node_modules/@hapi/hoek": { + "version": "9.3.0", +- "license": "BSD-3-Clause" ++ "license": "BSD-3-Clause", ++ "resolved": "https://registry.npmjs.org/@hapi/hoek/-/hoek-9.3.0.tgz", ++ "integrity": "sha512-/c6rf4UJlmHlC9b5BaNvzAcFv7HZ2QHaV0D4/HNlBdvFnvQq8RI4kYdhyPCl7Xj+oWvTWQ8ujhqS53LIgAe6KQ==" + }, + "packages/app-tests/node_modules/start-server-and-test/node_modules/wait-on/node_modules/joi/node_modules/@hapi/topo": { + "version": "5.1.0", + "license": "BSD-3-Clause", + "dependencies": { + "@hapi/hoek": "^9.0.0" +- } ++ }, ++ "resolved": "https://registry.npmjs.org/@hapi/topo/-/topo-5.1.0.tgz", ++ "integrity": "sha512-foQZKJig7Ob0BMAYBfcJk8d77QtOe7Wo4ox7ff1lQYoNNAb6jwcY1ncdoy2e9wQZzvNy7ODZCYJkK8kzmcAnAg==" + }, + "packages/app-tests/node_modules/start-server-and-test/node_modules/wait-on/node_modules/joi/node_modules/@sideway/address": { + "version": "4.1.5", + "license": "BSD-3-Clause", + "dependencies": { + "@hapi/hoek": "^9.0.0" +- } ++ }, ++ "resolved": "https://registry.npmjs.org/@sideway/address/-/address-4.1.5.tgz", ++ "integrity": "sha512-IqO/DUQHUkPeixNQ8n0JA6102hT9CmaljNTPmQ1u8MEhBo/R4Q8eKLN/vGZxuebwOroDB4cbpjheD4+/sKFK4Q==" + }, + "packages/app-tests/node_modules/start-server-and-test/node_modules/wait-on/node_modules/joi/node_modules/@sideway/formula": { + "version": "3.0.1", +- "license": "BSD-3-Clause" ++ "license": "BSD-3-Clause", ++ "resolved": "https://registry.npmjs.org/@sideway/formula/-/formula-3.0.1.tgz", ++ "integrity": "sha512-/poHZJJVjx3L+zVD6g9KgHfYnb443oi7wLu/XKojDviHy6HOEOA6z1Trk5aR1dGcmPenJEgb2sK2I80LeS3MIg==" + }, + "packages/app-tests/node_modules/start-server-and-test/node_modules/wait-on/node_modules/joi/node_modules/@sideway/pinpoint": { + "version": "2.0.0", +- "license": "BSD-3-Clause" ++ "license": "BSD-3-Clause", ++ "resolved": "https://registry.npmjs.org/@sideway/pinpoint/-/pinpoint-2.0.0.tgz", ++ "integrity": "sha512-RNiOoTPkptFtSVzQevY/yWtZwf/RxyVnPy/OcA9HBM3MlGDnBEYL5B41H0MTn0Uec8Hi+2qUtTfG2WWZBmMejQ==" + }, + "packages/app-tests/node_modules/start-server-and-test/node_modules/wait-on/node_modules/rxjs": { + "version": "7.8.2", + "license": "Apache-2.0", + "dependencies": { + "tslib": "^2.1.0" +- } ++ }, ++ "resolved": "https://registry.npmjs.org/rxjs/-/rxjs-7.8.2.tgz", ++ "integrity": "sha512-dhKf903U/PQZY6boNNtAGdWbG85WAbjT/1xYoZIC7FAY0yWapOBQVsVrDl58W86//e1VpMNBtRV4MaXfdMySFA==" + }, + "packages/assets": { + "name": "@documenso/assets", +@@ -36718,7 +36744,9 @@ + }, + "packages/signing/node_modules/ts-pattern": { + "version": "5.7.1", +- "license": "MIT" ++ "license": "MIT", ++ "resolved": "https://registry.npmjs.org/ts-pattern/-/ts-pattern-5.7.1.tgz", ++ "integrity": "sha512-EGs8PguQqAAUIcQfK4E9xdXxB6s2GK4sJfT/vcc9V1ELIvC4LH/zXu2t/5fajtv6oiRCxdv7BgtVK3vWgROxag==" + }, + "packages/signing/node_modules/vitest": { + "version": "3.1.4", +@@ -36787,7 +36815,9 @@ + "jsdom": { + "optional": true + } +- } ++ }, ++ "resolved": "https://registry.npmjs.org/vitest/-/vitest-3.1.4.tgz", ++ "integrity": "sha512-Ta56rT7uWxCSJXlBtKgIlApJnT6e6IGmTYxYcmxjJ4ujuZDI59GUQgVDObXXJujOmPDBYXHK1qmaGtneu6TNIQ==" + }, + "packages/signing/node_modules/vitest/node_modules/@vitest/expect": { + "version": "3.1.4", +@@ -36801,7 +36831,9 @@ + }, + "funding": { + "url": "https://opencollective.com/vitest" +- } ++ }, ++ "resolved": "https://registry.npmjs.org/@vitest/expect/-/expect-3.1.4.tgz", ++ "integrity": "sha512-xkD/ljeliyaClDYqHPNCiJ0plY5YIcM0OlRiZizLhlPmpXWpxnGMyTZXOHFhFeG7w9P5PBeL4IdtJ/HeQwTbQA==" + }, + "packages/signing/node_modules/vitest/node_modules/@vitest/mocker": { + "version": "3.1.4", +@@ -36826,7 +36858,9 @@ + "vite": { + "optional": true + } +- } ++ }, ++ "resolved": "https://registry.npmjs.org/@vitest/mocker/-/mocker-3.1.4.tgz", ++ "integrity": "sha512-8IJ3CvwtSw/EFXqWFL8aCMu+YyYXG2WUSrQbViOZkWTKTVicVwZ/YiEZDSqD00kX+v/+W+OnxhNWoeVKorHygA==" + }, + "packages/signing/node_modules/vitest/node_modules/@vitest/mocker/node_modules/estree-walker": { + "version": "3.0.3", +@@ -36834,7 +36868,9 @@ + "license": "MIT", + "dependencies": { + "@types/estree": "^1.0.0" +- } ++ }, ++ "resolved": "https://registry.npmjs.org/estree-walker/-/estree-walker-3.0.3.tgz", ++ "integrity": "sha512-7RUKfXgSMMkzt6ZuXmqapOurLGPPfgj6l9uRZ7lRGolvk0y2yocc35LdcxKC5PQZdn2DMqioAQ2NoWcrTKmm6g==" + }, + "packages/signing/node_modules/vitest/node_modules/@vitest/pretty-format": { + "version": "3.1.4", +@@ -36845,7 +36881,9 @@ + }, + "funding": { + "url": "https://opencollective.com/vitest" +- } ++ }, ++ "resolved": "https://registry.npmjs.org/@vitest/pretty-format/-/pretty-format-3.1.4.tgz", ++ "integrity": "sha512-cqv9H9GvAEoTaoq+cYqUTCGscUjKqlJZC7PRwY5FMySVj5J+xOm1KQcCiYHJOEzOKRUhLH4R2pTwvFlWCEScsg==" + }, + "packages/signing/node_modules/vitest/node_modules/@vitest/runner": { + "version": "3.1.4", +@@ -36857,7 +36895,9 @@ + }, + "funding": { + "url": "https://opencollective.com/vitest" +- } ++ }, ++ "resolved": "https://registry.npmjs.org/@vitest/runner/-/runner-3.1.4.tgz", ++ "integrity": "sha512-djTeF1/vt985I/wpKVFBMWUlk/I7mb5hmD5oP8K9ACRmVXgKTae3TUOtXAEBfslNKPzUQvnKhNd34nnRSYgLNQ==" + }, + "packages/signing/node_modules/vitest/node_modules/@vitest/snapshot": { + "version": "3.1.4", +@@ -36870,7 +36910,9 @@ + }, + "funding": { + "url": "https://opencollective.com/vitest" +- } ++ }, ++ "resolved": "https://registry.npmjs.org/@vitest/snapshot/-/snapshot-3.1.4.tgz", ++ "integrity": "sha512-JPHf68DvuO7vilmvwdPr9TS0SuuIzHvxeaCkxYcCD4jTk67XwL45ZhEHFKIuCm8CYstgI6LZ4XbwD6ANrwMpFg==" + }, + "packages/signing/node_modules/vitest/node_modules/@vitest/spy": { + "version": "3.1.4", +@@ -36881,7 +36923,9 @@ + }, + "funding": { + "url": "https://opencollective.com/vitest" +- } ++ }, ++ "resolved": "https://registry.npmjs.org/@vitest/spy/-/spy-3.1.4.tgz", ++ "integrity": "sha512-Xg1bXhu+vtPXIodYN369M86K8shGLouNjoVI78g8iAq2rFoHFdajNvJJ5A/9bPMFcfQqdaCpOgWKEoMQg/s0Yg==" + }, + "packages/signing/node_modules/vitest/node_modules/@vitest/spy/node_modules/tinyspy": { + "version": "3.0.2", +@@ -36889,7 +36933,9 @@ + "license": "MIT", + "engines": { + "node": ">=14.0.0" +- } ++ }, ++ "resolved": "https://registry.npmjs.org/tinyspy/-/tinyspy-3.0.2.tgz", ++ "integrity": "sha512-n1cw8k1k0x4pgA2+9XrOkFydTerNcJ1zWCO5Nn9scWHTD+5tp8dghT2x1uduQePZTZgd3Tupf+x9BxJjeJi77Q==" + }, + "packages/signing/node_modules/vitest/node_modules/@vitest/utils": { + "version": "3.1.4", +@@ -36902,12 +36948,16 @@ + }, + "funding": { + "url": "https://opencollective.com/vitest" +- } ++ }, ++ "resolved": "https://registry.npmjs.org/@vitest/utils/-/utils-3.1.4.tgz", ++ "integrity": "sha512-yriMuO1cfFhmiGc8ataN51+9ooHRuURdfAZfwFd3usWynjzpLslZdYnRegTv32qdgtJTsj15FoeZe2g15fY1gg==" + }, + "packages/signing/node_modules/vitest/node_modules/@vitest/utils/node_modules/loupe": { + "version": "3.1.3", + "dev": true, +- "license": "MIT" ++ "license": "MIT", ++ "resolved": "https://registry.npmjs.org/loupe/-/loupe-3.1.3.tgz", ++ "integrity": "sha512-kkIp7XSkP78ZxJEsSxW3712C6teJVoeHHwgo9zJ380de7IYyJ2ISlxojcH2pC5OFLewESmnRi/+XCDIEEVyoug==" + }, + "packages/signing/node_modules/vitest/node_modules/chai": { + "version": "5.2.0", +@@ -36922,7 +36972,9 @@ + }, + "engines": { + "node": ">=12" +- } ++ }, ++ "resolved": "https://registry.npmjs.org/chai/-/chai-5.2.0.tgz", ++ "integrity": "sha512-mCuXncKXk5iCLhfhwTc0izo0gtEmpz5CtG2y8GiOINBlMVS6v8TMRc5TaLWKS6692m9+dVVfzgeVxR5UxWHTYw==" + }, + "packages/signing/node_modules/vitest/node_modules/chai/node_modules/assertion-error": { + "version": "2.0.1", +@@ -36930,7 +36982,9 @@ + "license": "MIT", + "engines": { + "node": ">=12" +- } ++ }, ++ "resolved": "https://registry.npmjs.org/assertion-error/-/assertion-error-2.0.1.tgz", ++ "integrity": "sha512-Izi8RQcffqCeNVgFigKli1ssklIbpHnCYc6AknXGYoB6grJqyeby7jv12JUQgmTAnIDnbck1uxksT4dzN3PWBA==" + }, + "packages/signing/node_modules/vitest/node_modules/chai/node_modules/check-error": { + "version": "2.1.1", +@@ -36938,7 +36992,9 @@ + "license": "MIT", + "engines": { + "node": ">= 16" +- } ++ }, ++ "resolved": "https://registry.npmjs.org/check-error/-/check-error-2.1.1.tgz", ++ "integrity": "sha512-OAlb+T7V4Op9OwdkjmguYRqncdlx5JiofwOAUkmTF+jNdHwzTaTs4sRAGpzLF3oOz5xAyDGrPgeIDFQmDOTiJw==" + }, + "packages/signing/node_modules/vitest/node_modules/chai/node_modules/deep-eql": { + "version": "5.0.2", +@@ -36946,12 +37002,16 @@ + "license": "MIT", + "engines": { + "node": ">=6" +- } ++ }, ++ "resolved": "https://registry.npmjs.org/deep-eql/-/deep-eql-5.0.2.tgz", ++ "integrity": "sha512-h5k/5U50IJJFpzfL6nO9jaaumfjO/f2NjK/oYB2Djzm4p9L+3T9qWpZqZ2hAbLPuuYq9wrU08WQyBTL5GbPk5Q==" + }, + "packages/signing/node_modules/vitest/node_modules/chai/node_modules/loupe": { + "version": "3.1.3", + "dev": true, +- "license": "MIT" ++ "license": "MIT", ++ "resolved": "https://registry.npmjs.org/loupe/-/loupe-3.1.3.tgz", ++ "integrity": "sha512-kkIp7XSkP78ZxJEsSxW3712C6teJVoeHHwgo9zJ380de7IYyJ2ISlxojcH2pC5OFLewESmnRi/+XCDIEEVyoug==" + }, + "packages/signing/node_modules/vitest/node_modules/chai/node_modules/pathval": { + "version": "2.0.0", +@@ -36959,7 +37019,9 @@ + "license": "MIT", + "engines": { + "node": ">= 14.16" +- } ++ }, ++ "resolved": "https://registry.npmjs.org/pathval/-/pathval-2.0.0.tgz", ++ "integrity": "sha512-vE7JKRyES09KiunauX7nd2Q9/L7lhok4smP9RZTDeD4MVs72Dp2qNFVz39Nz5a0FVEW0BJR6C0DYrq6unoziZA==" + }, + "packages/signing/node_modules/vitest/node_modules/expect-type": { + "version": "1.2.1", +@@ -36967,27 +37029,37 @@ + "license": "Apache-2.0", + "engines": { + "node": ">=12.0.0" +- } ++ }, ++ "resolved": "https://registry.npmjs.org/expect-type/-/expect-type-1.2.1.tgz", ++ "integrity": "sha512-/kP8CAwxzLVEeFrMm4kMmy4CCDlpipyA7MYLVrdJIkV0fYF0UaigQHRsxHiuY/GEea+bh4KSv3TIlgr+2UL6bw==" + }, + "packages/signing/node_modules/vitest/node_modules/pathe": { + "version": "2.0.3", + "dev": true, +- "license": "MIT" ++ "license": "MIT", ++ "resolved": "https://registry.npmjs.org/pathe/-/pathe-2.0.3.tgz", ++ "integrity": "sha512-WUjGcAqP1gQacoQe+OBJsFA7Ld4DyXuUIjZ5cc75cLHvJ7dtNsTugphxIADwspS+AraAUePCKrSVtPLFj/F88w==" + }, + "packages/signing/node_modules/vitest/node_modules/std-env": { + "version": "3.9.0", + "dev": true, +- "license": "MIT" ++ "license": "MIT", ++ "resolved": "https://registry.npmjs.org/std-env/-/std-env-3.9.0.tgz", ++ "integrity": "sha512-UGvjygr6F6tpH7o2qyqR6QYpwraIjKSdtzyBdyytFOHmPZY917kwdwLG0RbOjWOnKmnm3PeHjaoLLMie7kPLQw==" + }, + "packages/signing/node_modules/vitest/node_modules/tinybench": { + "version": "2.9.0", + "dev": true, +- "license": "MIT" ++ "license": "MIT", ++ "resolved": "https://registry.npmjs.org/tinybench/-/tinybench-2.9.0.tgz", ++ "integrity": "sha512-0+DUvqWMValLmha6lr4kD8iAMK1HzV0/aKnCtWb9v9641TnP/MFb7Pc2bxoxQjTXAErryXVgUOfv2YqNllqGeg==" + }, + "packages/signing/node_modules/vitest/node_modules/tinyexec": { + "version": "0.3.2", + "dev": true, +- "license": "MIT" ++ "license": "MIT", ++ "resolved": "https://registry.npmjs.org/tinyexec/-/tinyexec-0.3.2.tgz", ++ "integrity": "sha512-KQQR9yN7R5+OSwaK0XQoj22pwHoTlgYqmUscPYoknOoWCWfj/5/ABTMRi69FrKU5ffPVh5QcFikpWJI/P1ocHA==" + }, + "packages/signing/node_modules/vitest/node_modules/tinypool": { + "version": "1.0.2", +@@ -36995,7 +37067,9 @@ + "license": "MIT", + "engines": { + "node": "^18.0.0 || >=20.0.0" +- } ++ }, ++ "resolved": "https://registry.npmjs.org/tinypool/-/tinypool-1.0.2.tgz", ++ "integrity": "sha512-al6n+QEANGFOMf/dmUMsuS5/r9B06uwlyNjZZql/zv8J7ybHCgoihBNORZCY2mzUuAnomQa2JdhyHKzZxPCrFA==" + }, + "packages/signing/node_modules/vitest/node_modules/tinyrainbow": { + "version": "2.0.0", +@@ -37003,7 +37077,9 @@ + "license": "MIT", + "engines": { + "node": ">=14.0.0" +- } ++ }, ++ "resolved": "https://registry.npmjs.org/tinyrainbow/-/tinyrainbow-2.0.0.tgz", ++ "integrity": "sha512-op4nsTR47R6p0vMUUoYl/a+ljLFVtlfaXkLQmqfLR1qHma1h/ysYk4hEXZ880bf2CYgTskvTa/e196Vd5dDQXw==" + }, + "packages/signing/node_modules/vitest/node_modules/vite-node": { + "version": "3.1.4", +@@ -37024,7 +37100,9 @@ + }, + "funding": { + "url": "https://opencollective.com/vitest" +- } ++ }, ++ "resolved": "https://registry.npmjs.org/vite-node/-/vite-node-3.1.4.tgz", ++ "integrity": "sha512-6enNwYnpyDo4hEgytbmc6mYWHXDHYEn0D1/rw4Q+tnHUGtKTJsn8T1YkX6Q18wI5LCrS8CTYlBaiCqxOy2kvUA==" + }, + "packages/signing/node_modules/vitest/node_modules/why-is-node-running": { + "version": "2.3.0", +@@ -37039,17 +37117,23 @@ + }, + "engines": { + "node": ">=8" +- } ++ }, ++ "resolved": "https://registry.npmjs.org/why-is-node-running/-/why-is-node-running-2.3.0.tgz", ++ "integrity": "sha512-hUrmaWBdVDcxvYqnyh09zunKzROWjbZTiNy8dBEjkS7ehEDQibXJ7XvlmtbwuTclUiIyN+CyXQD4Vmko8fNm8w==" + }, + "packages/signing/node_modules/vitest/node_modules/why-is-node-running/node_modules/siginfo": { + "version": "2.0.0", + "dev": true, +- "license": "ISC" ++ "license": "ISC", ++ "resolved": "https://registry.npmjs.org/siginfo/-/siginfo-2.0.0.tgz", ++ "integrity": "sha512-ybx0WO1/8bSBLEWXZvEd7gMW3Sn3JFlW3TvX1nREbDLRNQNaeNN8WK0meBwPdAaOI7TtRRRJn/Es1zhrrCHu7g==" + }, + "packages/signing/node_modules/vitest/node_modules/why-is-node-running/node_modules/stackback": { + "version": "0.0.2", + "dev": true, +- "license": "MIT" ++ "license": "MIT", ++ "resolved": "https://registry.npmjs.org/stackback/-/stackback-0.0.2.tgz", ++ "integrity": "sha512-1XMJE5fQo1jGH6Y/7ebnwPOBEkIEnT4QF32d5R1+VXdXveM0IBMJt8zfaxX1P3QhVwrYe+576+jkANtSS2mBbw==" + }, + "packages/tailwind-config": { + "name": "@documenso/tailwind-config", +@@ -37171,4 +37255,4 @@ + "license": "MIT" + } + } +-} ++} +\ No newline at end of file diff --git a/pkgs/by-name/do/documenso/package.json.patch b/pkgs/by-name/do/documenso/package.json.patch new file mode 100644 index 000000000000..a8a72575e1ad --- /dev/null +++ b/pkgs/by-name/do/documenso/package.json.patch @@ -0,0 +1,40 @@ +diff --git a/package.json b/package.json +index 1ff8701..e337979 100644 +--- a/package.json ++++ b/package.json +@@ -44,22 +44,22 @@ + "@commitlint/cli": "^17.7.1", + "@commitlint/config-conventional": "^17.7.0", + "@lingui/cli": "^5.2.0", ++ "@prisma/client": "^6.8.2", + "dotenv": "^16.5.0", + "dotenv-cli": "^8.0.0", + "eslint": "^8.40.0", + "eslint-config-custom": "*", + "husky": "^9.0.11", + "lint-staged": "^15.2.2", ++ "nodemailer": "^6.10.1", + "playwright": "1.52.0", + "prettier": "^3.3.3", +- "rimraf": "^5.0.1", +- "turbo": "^1.9.3", +- "vite": "^6.3.5", +- "@prisma/client": "^6.8.2", + "prisma": "^6.8.2", + "prisma-extension-kysely": "^3.0.0", + "prisma-kysely": "^1.8.0", +- "nodemailer": "^6.10.1" ++ "rimraf": "^5.0.1", ++ "turbo": "^2.5.8", ++ "vite": "^6.3.5" + }, + "name": "@documenso/root", + "workspaces": [ +@@ -71,7 +71,6 @@ + "@documenso/prisma": "^0.0.0", + "@lingui/conf": "^5.2.0", + "@lingui/core": "^5.2.0", +- "inngest-cli": "^0.29.1", + "luxon": "^3.5.0", + "mupdf": "^1.0.0", + "react": "^18", diff --git a/pkgs/by-name/do/documenso/package.nix b/pkgs/by-name/do/documenso/package.nix index 71b15e2b29b8..f00781bc2c94 100644 --- a/pkgs/by-name/do/documenso/package.nix +++ b/pkgs/by-name/do/documenso/package.nix @@ -1,50 +1,119 @@ { lib, + nodejs, + node-gyp, + node-pre-gyp, + pixman, fetchFromGitHub, buildNpmPackage, prisma, - nix-update-script, + prisma-engines, + vips, + pkg-config, + cairo, + pango, + bash, + openssl, }: let - version = "0.9"; + pname = "documenso"; + version = "1.12.6"; in buildNpmPackage { - pname = "documenso"; - inherit version; + + inherit version pname; src = fetchFromGitHub { owner = "documenso"; repo = "documenso"; rev = "v${version}"; - hash = "sha256-uKOJVZ0GRHo/CYvd/Ix/tq1WDhutRji1tSGdcITsNlo="; + hash = "sha256-1TKjsOKJkv3COFgsE4tPAymI0MdeT+T8HiNgnoWHlAY="; }; - nativeBuildInputs = [ prisma ]; + npmDepsHash = "sha256-ZddRSBDasa3mMAS2dqXgXRMOc1nvspdXsuTZ7c+einw="; - preBuild = '' - # somehow for linux, npm is not finding the prisma package with the - # packages installed with the lockfile. - # This generates a prisma version incompatibility warning and is a kludge - # until the upstream package-lock is modified. - prisma generate + env.PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD = "1"; + + env.PRISMA_QUERY_ENGINE_LIBRARY = "${prisma-engines}/lib/libquery_engine.node"; + env.PRISMA_QUERY_ENGINE_BINARY = "${prisma-engines}/bin/query-engine"; + env.PRISMA_SCHEMA_ENGINE_BINARY = "${prisma-engines}/bin/schema-engine"; + env.TURBO_NO_UPDATE_NOTIFIER = "true"; + env.TURBO_FORCE = "true"; + env.TURBO_REMOTE_CACHE_ENABLED = "false"; + + nativeBuildInputs = [ + pkg-config + vips + node-gyp + ]; + + buildInputs = [ + node-pre-gyp + node-gyp + pixman + cairo + pango + vips + ]; + + patches = [ + ./package-lock.json.patch + ./package.json.patch + ./turbo.json.patch + ]; + + buildPhase = '' + runHook preBuild + + patchShebangs apps/remix/.bin/build.sh + npm exec turbo -- telemetry disable + npm exec turbo -- build --filter=@documenso/remix + + runHook postBuild ''; - npmDepsHash = "sha256-+JbvFMi8xoyxkuL9k96K1Vq0neciCGkkyZUPd15ES2E="; - installPhase = '' - runHook preInstall + runHook preInstall - mkdir $out - cp -r node_modules $out/ - cp package-lock.json $out - cp apps/web/package.json $out - cp -r apps/web/public $out/ - cp -r apps/web/.next $out/ + mkdir -p $out/bin + cp -r . $out/ - runHook postInstall + cat > $out/bin/${pname} < turbo-patched.json + cp turbo-patched.json turbo.json + + echo "fix package-lock.json hashes" + nix run nixpkgs#npm-lockfile-fix -- package-lock.json + + git diff package-lock.json > $current_nixpkgs_dir/package-lock.json.patch + git diff package.json > $current_nixpkgs_dir/package.json.patch + git diff turbo.json > $current_nixpkgs_dir/turbo.json.patch +} + +runme