papers: add update script

This commit is contained in:
Jan Tojnar
2025-11-09 16:27:06 +01:00
parent 5b7feb5518
commit b36fa015c5
+33
View File
@@ -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";