This commit is contained in:
parent
9d5a39f58e
commit
c788335493
6 changed files with 657 additions and 696 deletions
|
@ -8,4 +8,14 @@ Modifications for the new yarn berry lockfiles and some other improvements stole
|
||||||
|
|
||||||
I've also made some further modifications myself to try and simplify the package and better understand it.
|
I've also made some further modifications myself to try and simplify the package and better understand it.
|
||||||
|
|
||||||
The package can be updated to the latest glitch-soc commit with `./update.sh`. The yarn hash in `version_data.nix` has to be adjusted manually afterwards from the error message though.
|
## Updating
|
||||||
|
|
||||||
|
The package can be updated to the latest glitch-soc commit with `update.sh`.
|
||||||
|
|
||||||
|
- the `deps.patch` for the yarn lockfile will probably not work anymore
|
||||||
|
- in that case, delete it before running `update.sh`
|
||||||
|
- then try to build the package
|
||||||
|
- when it fails again with a yarn error, run `nix log` to get the full yarn output
|
||||||
|
- take the diff from there and adjust `deps.patch` accordingly
|
||||||
|
- also, the yarn hash in `version_data.nix` has to be adjusted manually
|
||||||
|
- build the package and paste the hash from the error message into `yarnHash`
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
{ lib, stdenv, stdenvNoCC, nodejs-slim, bundlerEnv
|
{ stdenv, stdenvNoCC, nodejs-slim, bundlerEnv
|
||||||
, yarn-berry, callPackage, imagemagick, ffmpeg, file, ruby, writeShellScript
|
, yarn-berry, callPackage, ruby_3_4, writeShellScript
|
||||||
, brotli, cacert
|
, brotli, cacert
|
||||||
}:
|
}:
|
||||||
|
|
||||||
|
@ -17,7 +17,8 @@ let
|
||||||
# ruby gems, built from `gemset.nix`, which is generated by bundix in `update.sh` from the source Gemfile
|
# ruby gems, built from `gemset.nix`, which is generated by bundix in `update.sh` from the source Gemfile
|
||||||
mastodonGems = bundlerEnv {
|
mastodonGems = bundlerEnv {
|
||||||
name = "glitch-soc-gems-${version}"; # bundlerEnv breaks when pname is set instead
|
name = "glitch-soc-gems-${version}"; # bundlerEnv breaks when pname is set instead
|
||||||
inherit version ruby;
|
inherit version;
|
||||||
|
ruby = ruby_3_4;
|
||||||
gemset = ./gemset.nix;
|
gemset = ./gemset.nix;
|
||||||
gemdir = src;
|
gemdir = src;
|
||||||
};
|
};
|
||||||
|
|
File diff suppressed because it is too large
Load diff
|
@ -2,15 +2,18 @@ diff --git a/yarn.lock b/yarn.lock
|
||||||
index 764617e032..c269e098c9 100644
|
index 764617e032..c269e098c9 100644
|
||||||
--- a/yarn.lock
|
--- a/yarn.lock
|
||||||
+++ b/yarn.lock
|
+++ b/yarn.lock
|
||||||
@@ -17310,11 +17310,10 @@ __metadata:
|
@@ -17405,13 +17405,12 @@
|
||||||
|
linkType: hard
|
||||||
|
|
||||||
"typescript@patch:typescript@npm%3A5#optional!builtin<compat/typescript>, typescript@patch:typescript@npm%3A^5.0.4#optional!builtin<compat/typescript>":
|
"typescript@patch:typescript@npm%3A5#optional!builtin<compat/typescript>, typescript@patch:typescript@npm%3A^5.0.4#optional!builtin<compat/typescript>":
|
||||||
version: 5.5.2
|
version: 5.7.3
|
||||||
- resolution: "typescript@patch:typescript@npm%3A5.5.2#optional!builtin<compat/typescript>::version=5.5.2&hash=379a07"
|
- resolution: "typescript@patch:typescript@npm%3A5.7.3#optional!builtin<compat/typescript>::version=5.7.3&hash=5786d5"
|
||||||
+ resolution: "typescript@patch:typescript@npm%3A5.5.2#optional!builtin<compat/typescript>::version=5.5.2&hash=b45daf"
|
+ resolution: "typescript@patch:typescript@npm%3A5.7.3#optional!builtin<compat/typescript>::version=5.7.3&hash=8c6c40"
|
||||||
bin:
|
bin:
|
||||||
tsc: bin/tsc
|
tsc: bin/tsc
|
||||||
tsserver: bin/tsserver
|
tsserver: bin/tsserver
|
||||||
- checksum: 10c0/a7b7ede75dc7fc32a76d0d0af6b91f5fbd8620890d84c906f663d8783bf3de6d7bd50f0430b8bb55eac88a38934af847ff709e7156e5138b95ae94cbd5f73e5b
|
- checksum: 10c0/6fd7e0ed3bf23a81246878c613423730c40e8bdbfec4c6e4d7bf1b847cbb39076e56ad5f50aa9d7ebd89877999abaee216002d3f2818885e41c907caaa192cc4
|
||||||
languageName: node
|
languageName: node
|
||||||
linkType: hard
|
linkType: hard
|
||||||
|
|
||||||
|
"unbox-primitive@npm:^1.0.2":
|
||||||
|
|
|
@ -19,5 +19,5 @@ in applyPatches {
|
||||||
repo = "mastodon";
|
repo = "mastodon";
|
||||||
inherit (versionData) rev hash;
|
inherit (versionData) rev hash;
|
||||||
};
|
};
|
||||||
# patches = lib.filesystem.listFilesRecursive ./patches;
|
patches = lib.filesystem.listFilesRecursive ./patches;
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
# This file was generated with update.sh.
|
# This file was generated with update.sh.
|
||||||
{
|
{
|
||||||
rev = "05cfe04415084995ccc01b6c737edb39c9dd8411";
|
rev = "26659425d3ccefa0759820bbc3b7da91f49ca36d";
|
||||||
hash = "sha256-qV6p3PGzsQhA0b6usqLe6lHcXt4z30nvdpkO5zeHBlw=";
|
hash = "sha256-1kEnlaDO6iskIJdf4JtSyjo73uM9CGLD9oV50xEecL0=";
|
||||||
yarnHash = "sha256-2iud+LfchFMXEv9/qQRTIyVPHJRe1WyljK2KmPMJ4Yg=";
|
yarnHash = "sha256-6CBV+JtyBP60Q+iIaVgJ9NzYRPH6COAykfZBgwlY7rI=";
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue