treewide: Get rid of most parseDrvName without breaking compat
That is because this commit should be merged to both master and release-19.09.
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
set -eu -o pipefail
|
||||
|
||||
core_json="$(curl -s --fail --location https://updates.jenkins.io/stable/update-center.actual.json | jq .core)"
|
||||
oldVersion=$(nix-instantiate --eval -E "with import ./. {}; jenkins.version or (builtins.parseDrvName jenkins.name).version" | tr -d '"')
|
||||
oldVersion=$(nix-instantiate --eval -E "with import ./. {}; lib.getVersion jenkins" | tr -d '"')
|
||||
|
||||
version="$(jq -r .version <<<$core_json)"
|
||||
sha256="$(jq -r .sha256 <<<$core_json)"
|
||||
|
||||
Reference in New Issue
Block a user