diff --git a/pkgs/by-name/pa/papers/package.nix b/pkgs/by-name/pa/papers/package.nix index c3dbc70c1983..399cef8184f0 100644 --- a/pkgs/by-name/pa/papers/package.nix +++ b/pkgs/by-name/pa/papers/package.nix @@ -33,6 +33,9 @@ exempi, cargo, rustPlatform, + _experimental-update-script-combinators, + common-updater-scripts, + gnome, }: stdenv.mkDerivation (finalAttrs: { @@ -133,6 +136,36 @@ stdenv.mkDerivation (finalAttrs: { moveToOutput "share/doc" "$devdoc" ''; + passthru = { + updateScript = + let + updateSource = gnome.updateScript { + packageName = "papers"; + }; + + updateLockfile = { + command = [ + "sh" + "-c" + '' + PATH=${ + lib.makeBinPath [ + common-updater-scripts + ] + } + update-source-version papers --ignore-same-version --source-key=cargoDeps.vendorStaging > /dev/null + '' + ]; + # Experimental feature: do not copy! + supportedFeatures = [ "silent" ]; + }; + in + _experimental-update-script-combinators.sequence [ + updateSource + updateLockfile + ]; + }; + meta = with lib; { homepage = "https://gitlab.gnome.org/GNOME/papers"; changelog = "https://gitlab.gnome.org/GNOME/papers/-/blob/${finalAttrs.version}/NEWS?ref_type=tags";