diff options
author | Ilan Joselevich <personal@ilanjoselevich.com> | 2022-04-27 15:00:53 +0300 |
---|---|---|
committer | Ilan Joselevich <personal@ilanjoselevich.com> | 2022-06-10 04:17:24 +0300 |
commit | e86e7ee1a8931b98c6f3fa5c8f09ca57864998a0 (patch) | |
tree | 765c978850b6214943c16c01ef3577f59865edb0 /pkgs/development/libraries/libvirt | |
parent | c8b8ea8232f9b0f454d2614a9200858e38c7ef25 (diff) |
libvirt: add passthru update script
Diffstat (limited to 'pkgs/development/libraries/libvirt')
-rw-r--r-- | pkgs/development/libraries/libvirt/default.nix | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/pkgs/development/libraries/libvirt/default.nix b/pkgs/development/libraries/libvirt/default.nix index d7eda83bd1692..8ffad6d82f9ef 100644 --- a/pkgs/development/libraries/libvirt/default.nix +++ b/pkgs/development/libraries/libvirt/default.nix @@ -35,6 +35,7 @@ , stdenv , xhtml1 , yajl +, writeScript # Linux , acl ? null @@ -326,6 +327,19 @@ stdenv.mkDerivation rec { --prefix PATH : /run/libvirt/nix-emulators:${binPath} ''; + passthru.updateScript = writeScript "update-libvirt" '' + #!/usr/bin/env nix-shell + #!nix-shell -i bash -p curl jq common-updater-scripts + + set -eu -o pipefail + + libvirtVersion=$(curl https://gitlab.com/api/v4/projects/192693/repository/tags | jq -r '.[].name|select(. | contains("rc") | not)' | head -n1 | sed "s/v//g") + sysvirtVersion=$(curl https://gitlab.com/api/v4/projects/192677/repository/tags | jq -r '.[].name|select(. | contains("rc") | not)' | head -n1 | sed "s/v//g") + update-source-version ${pname} "$libvirtVersion" + update-source-version python3Packages.${pname} "$libvirtVersion" + update-source-version perlPackages.SysVirt "$sysvirtVersion" --file="pkgs/top-level/perl-packages.nix" + ''; + meta = { homepage = "https://libvirt.org/"; description = '' |