coursier: 2.0.9 -> 2.0.11

This commit is contained in:
R. RyanTM 2021-02-13 23:58:53 +00:00 committed by Tim Steinbach
parent 320861fcd0
commit a8559f10e5

View file

@ -2,7 +2,7 @@
, coreutils, git, gnused, nix, nixfmt }: , coreutils, git, gnused, nix, nixfmt }:
let let
version = "2.0.9"; version = "2.0.11";
zshCompletion = fetchurl { zshCompletion = fetchurl {
url = url =
@ -19,7 +19,7 @@ in stdenv.mkDerivation rec {
src = fetchurl { src = fetchurl {
url = url =
"https://github.com/coursier/coursier/releases/download/v${version}/coursier"; "https://github.com/coursier/coursier/releases/download/v${version}/coursier";
sha256 = "sha256-jqSv9VBLotl6YVWgWNznvTThRIiMUStQ0WbN6u01b1c="; sha256 = "sha256-jmKJPBPzO8DiXuJoHWibinkaAzneXdSK85SQfJ2nWhg=";
}; };
nativeBuildInputs = [ makeWrapper ]; nativeBuildInputs = [ makeWrapper ];
@ -37,14 +37,7 @@ in stdenv.mkDerivation rec {
#!${stdenv.shell} #!${stdenv.shell}
set -o errexit set -o errexit
PATH=${ PATH=${
lib.makeBinPath [ lib.makeBinPath [ common-updater-scripts coreutils git gnused nix nixfmt ]
common-updater-scripts
coreutils
git
gnused
nix
nixfmt
]
} }
oldVersion="$(nix-instantiate --eval -E "with import ./. {}; lib.getVersion ${pname}" | tr -d '"')" oldVersion="$(nix-instantiate --eval -E "with import ./. {}; lib.getVersion ${pname}" | tr -d '"')"
latestTag="$(git -c 'versionsort.suffix=-' ls-remote --exit-code --refs --sort='version:refname' --tags ${repo} 'v*.*.*' | tail --lines=1 | cut --delimiter='/' --fields=3 | sed 's|^v||g')" latestTag="$(git -c 'versionsort.suffix=-' ls-remote --exit-code --refs --sort='version:refname' --tags ${repo} 'v*.*.*' | tail --lines=1 | cut --delimiter='/' --fields=3 | sed 's|^v||g')"