mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-20 11:05:14 +00:00
youtrack: add update script
This commit is contained in:
parent
0f2df9ff19
commit
a381fac62b
@ -31,6 +31,8 @@ stdenvNoCC.mkDerivation (finalAttrs: {
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
passthru.updateScript = ./update.sh;
|
||||
|
||||
meta = {
|
||||
description = "Issue tracking and project management tool for developers";
|
||||
maintainers = lib.teams.serokell.members ++ [ lib.maintainers.leona ];
|
||||
|
9
pkgs/by-name/yo/youtrack/update.sh
Executable file
9
pkgs/by-name/yo/youtrack/update.sh
Executable file
@ -0,0 +1,9 @@
|
||||
#!/usr/bin/env nix-shell
|
||||
#!nix-shell -i bash -p curl xq-xml common-updater-scripts
|
||||
|
||||
set -eu -o pipefail
|
||||
|
||||
version="$(curl https://www.jetbrains.com/youtrack/update.xml | \
|
||||
xq -x "/products/product[@name='YouTrack']/channel/build/@version")"
|
||||
|
||||
update-source-version youtrack "$version"
|
Loading…
Reference in New Issue
Block a user