6 , common-updater-scripts
12 url = "http://mirrors.kodi.tv/addons/omega/addons.xml.gz";
13 updateScript = writeShellScript "update.sh" ''
17 namespace=$(${nix}/bin/nix-instantiate $systemArg --eval -E "with import ./. {}; $attrPath.namespace" | tr -d '"')
18 version=$(${curl}/bin/curl -s -L ${url} | ${gzip}/bin/gunzip -c | ${xmlstarlet}/bin/xml select -T -t -m "//addons/addon[@id='$namespace']" -v @version)
20 ${common-updater-scripts}/bin/update-source-version "$attrPath" "$version"
23 [ updateScript attrPath ]