coursier: 1.1.0-M14-6 -> 2.0.0-RC3-3
This commit is contained in:
parent
8b12bfcb83
commit
8f8d9abca4
1 changed files with 11 additions and 2 deletions
|
@ -1,12 +1,18 @@
|
|||
{ stdenv, fetchurl, makeWrapper, jre }:
|
||||
|
||||
let
|
||||
zshCompletion = version: fetchurl {
|
||||
url = "https://raw.githubusercontent.com/coursier/coursier/v${version}/modules/cli/src/main/resources/completions/zsh";
|
||||
sha256 = "0gfr1q66crh6si4682xbxnj41igws83qj710npgm2bvq90xa8m49";
|
||||
};
|
||||
in
|
||||
stdenv.mkDerivation rec {
|
||||
name = "coursier-${version}";
|
||||
version = "1.1.0-M14-6";
|
||||
version = "2.0.0-RC3-3";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://github.com/coursier/coursier/releases/download/v${version}/coursier";
|
||||
sha256 = "01q0gz4qnwvnd7mprcm5aj77hrxyr6ax8jp4d9jkqfkg272znaj7";
|
||||
sha256 = "1qrybajwk46h6d1yp6n4zxdvrfl19lqhjsqxbm48vk3wbvj31vyl";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ makeWrapper ];
|
||||
|
@ -15,6 +21,9 @@ stdenv.mkDerivation rec {
|
|||
install -Dm555 $src $out/bin/coursier
|
||||
patchShebangs $out/bin/coursier
|
||||
wrapProgram $out/bin/coursier --prefix PATH ":" ${jre}/bin
|
||||
|
||||
# copy zsh completion
|
||||
install -Dm755 ${zshCompletion version} $out/share/zsh/site-functions/_coursier
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
|
|
Loading…
Reference in a new issue