libglycin: Handle cargoDeps hash in update script
Copied from gnome-user-share.
This commit is contained in:
parent
321ff26fb4
commit
d877c9b3e3
@ -15,6 +15,8 @@
|
|||||||
gtk4,
|
gtk4,
|
||||||
gobject-introspection,
|
gobject-introspection,
|
||||||
gnome,
|
gnome,
|
||||||
|
common-updater-scripts,
|
||||||
|
_experimental-update-script-combinators,
|
||||||
buildPackages,
|
buildPackages,
|
||||||
withIntrospection ?
|
withIntrospection ?
|
||||||
lib.meta.availableOn stdenv.hostPlatform gobject-introspection
|
lib.meta.availableOn stdenv.hostPlatform gobject-introspection
|
||||||
@ -71,10 +73,33 @@ stdenv.mkDerivation (finalAttrs: {
|
|||||||
];
|
];
|
||||||
|
|
||||||
passthru = {
|
passthru = {
|
||||||
updateScript = gnome.updateScript {
|
updateScript =
|
||||||
attrPath = "libglycin";
|
let
|
||||||
packageName = "glycin";
|
updateSource = gnome.updateScript {
|
||||||
};
|
attrPath = "libglycin";
|
||||||
|
packageName = "glycin";
|
||||||
|
};
|
||||||
|
updateLockfile = {
|
||||||
|
command = [
|
||||||
|
"sh"
|
||||||
|
"-c"
|
||||||
|
''
|
||||||
|
PATH=${
|
||||||
|
lib.makeBinPath [
|
||||||
|
common-updater-scripts
|
||||||
|
]
|
||||||
|
}
|
||||||
|
update-source-version libglycin --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 = {
|
meta = {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user