summary refs log tree commit diff
path: root/pkgs/servers
diff options
context:
space:
mode:
authorschnusch <schnusch@users.noreply.github.com>2022-03-13 11:35:06 +0100
committerschnusch <schnusch@users.noreply.github.com>2022-03-16 16:20:44 +0100
commit30bbba0e1ffc0c4803ab8ff412858d3d2b74b002 (patch)
treeebd46dbfe6d0b406e0b5ef5fb45252d134b6c8a5 /pkgs/servers
parenta4811f1fa3bb8324a7dd72e3bff0e3e29e4c4389 (diff)
downloadnixpkgs-30bbba0e1ffc0c4803ab8ff412858d3d2b74b002.tar
nixpkgs-30bbba0e1ffc0c4803ab8ff412858d3d2b74b002.tar.gz
nixpkgs-30bbba0e1ffc0c4803ab8ff412858d3d2b74b002.tar.bz2
nixpkgs-30bbba0e1ffc0c4803ab8ff412858d3d2b74b002.tar.lz
nixpkgs-30bbba0e1ffc0c4803ab8ff412858d3d2b74b002.tar.xz
nixpkgs-30bbba0e1ffc0c4803ab8ff412858d3d2b74b002.tar.zst
nixpkgs-30bbba0e1ffc0c4803ab8ff412858d3d2b74b002.zip
invidious: document update process
Diffstat (limited to 'pkgs/servers')
-rw-r--r--pkgs/servers/invidious/default.nix20
1 files changed, 12 insertions, 8 deletions
diff --git a/pkgs/servers/invidious/default.nix b/pkgs/servers/invidious/default.nix
index 14eed9a3be7..6e09678450a 100644
--- a/pkgs/servers/invidious/default.nix
+++ b/pkgs/servers/invidious/default.nix
@@ -1,13 +1,17 @@
 { lib, crystal, fetchFromGitHub, librsvg, pkg-config, libxml2, openssl, shards, sqlite, lsquic, videojs, nixosTests }:
 let
-  # When updating, always update the following:
-  #  * the git revision
-  #  * the version attribute
-  #  * the source hash (sha256)
-  # If the shards.lock file changed, also the following:
-  #  * shards.nix (by running `crystal2nix` in invidious’ source tree)
-  #  * If the lsquic.cr dependency changed: lsquic in lsquic.nix (version, sha256)
-  #  * If the lsquic version changed: boringssl' in lsquic.nix (version, sha256)
+  # All versions, revisions, and checksums are stored in ./versions.json.
+  # The update process is the following:
+  #   * pick the latest commit
+  #   * update .invidious.rev, .invidious.version, and .invidious.sha256
+  #   * prefetch the videojs dependencies with scripts/fetch-player-dependencies.cr
+  #     and update .videojs.sha256 (they are normally fetched during build
+  #     but nix's sandboxing does not allow that)
+  #   * if shard.lock changed
+  #     * recreate shards.nix by running crystal2nix
+  #     * update lsquic and boringssl if necessarry, lsquic.cr depends on
+  #       the same version of lsquic and lsquic requires the boringssl
+  #       commit mentioned in its README
   versions = builtins.fromJSON (builtins.readFile ./versions.json);
 in
 crystal.buildCrystalPackage rec {