xld: fix updateScript xmlstarlet xPath

This commit is contained in:
iivusly
2025-06-06 10:23:55 -07:00
parent bff4b05642
commit 3a985fd74f
+1 -1
View File
@@ -46,7 +46,7 @@ stdenvNoCC.mkDerivation (finalAttrs: {
];
text = ''
url=$(curl --silent "https://svn.code.sf.net/p/xld/code/appcast/xld-appcast_e.xml")
version=$(echo "$url" | xmlstarlet sel -t -v "substring-before(substring-after(//enclosure/@url, 'version='), '&')")
version=$(echo "$url" | xmlstarlet sel -t -v "//enclosure/@sparkle:shortVersionString")
update-source-version xld "$version" --file=./pkgs/by-name/xl/xld/package.nix
'';
});