Running nixpkgs-update (https://github.com/NixOS/infra/blob/main/non-critical-infra/modules/nixpkgs-update/README.md) with UPDATE_INFO: trilium-server 0.106.1 -> 0.107.0 https://github.com/TriliumNext/Trilium/releases attrpath: trilium-server Checking auto update branch... No auto update branch exists Old version 0.106.1" not present in master derivation file with contents: { stdenv, lib, autoPatchelfHook, fetchurl, makeBinaryWrapper, nodejs_24, }: let version = "0.107.0"; serverSource_x64.url = "https://github.com/TriliumNext/Trilium/releases/download/v${version}/TriliumNotes-Server-v${version}-linux-x64.tar.xz"; serverSource_x64.hash = "sha256-ohe1rHAuS9nUAc/VxunuJfCm9KDGc0XGW9Z9yGY9Pc4="; serverSource_arm64.url = "https://github.com/TriliumNext/Trilium/releases/download/v${version}/TriliumNotes-Server-v${version}-linux-arm64.tar.xz"; serverSource_arm64.hash = "sha256-XdWgbTUPT4cuvsC3Fw6u9ImVX3a6YtmekyVpeMyQIoE="; serverSource = if stdenv.hostPlatform.isx86_64 then serverSource_x64 else if stdenv.hostPlatform.isAarch64 then serverSource_arm64 else throw "${stdenv.hostPlatform.config} not supported by trilium-server"; in stdenv.mkDerivation { pname = "trilium-server"; inherit version; src = fetchurl serverSource; nativeBuildInputs = [ autoPatchelfHook makeBinaryWrapper ]; buildInputs = [ (lib.getLib stdenv.cc.cc) ]; dontConfigure = true; dontBuild = true; installPhase = '' runHook preInstall mkdir -p "$out/share/trilium-server" cp -r ./* "$out/share/trilium-server/" rm -r $out/share/trilium-server/node/bin # Unused musl prebuilds confuse autoPatchelfHook (glibc-only). rm -f "$out/share/trilium-server/node_modules/better-sqlite3/prebuilds"/linuxmusl-*.node makeWrapper ${lib.getExe nodejs_24} "$out/bin/trilium-server" \ --chdir "$out/share/trilium-server" \ --add-flags "main.mjs" runHook postInstall ''; meta = { description = "Hierarchical note taking application with focus on building large personal knowledge bases"; homepage = "https://github.com/TriliumNext/Trilium"; license = lib.licenses.agpl3Plus; sourceProvenance = with lib.sourceTypes; [ binaryNativeCode ]; platforms = [ "x86_64-linux" "aarch64-linux" ]; maintainers = with lib.maintainers; [ eliandoran fliegendewurst ]; mainProgram = "trilium-server"; }; }