mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-05 03:53:41 +00:00
2e6bf42a22
There ver very many conflicts, basically all due to name -> pname+version. Fortunately, almost everything was auto-resolved by kdiff3, and for now I just fixed up a couple evaluation problems, as verified by the tarball job. There might be some fallback to these conflicts, but I believe it should be minimal. Hydra nixpkgs: ?compare=1538299
36 lines
1.1 KiB
Nix
36 lines
1.1 KiB
Nix
{ 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 {
|
|
pname = "coursier";
|
|
version = "2.0.0-RC3-3";
|
|
|
|
src = fetchurl {
|
|
url = "https://github.com/coursier/coursier/releases/download/v${version}/coursier";
|
|
sha256 = "1qrybajwk46h6d1yp6n4zxdvrfl19lqhjsqxbm48vk3wbvj31vyl";
|
|
};
|
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
|
|
buildCommand = ''
|
|
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; {
|
|
homepage = https://get-coursier.io/;
|
|
description = "A Scala library to fetch dependencies from Maven / Ivy repositories";
|
|
license = licenses.asl20;
|
|
maintainers = with maintainers; [ adelbertc nequissimus ];
|
|
};
|
|
}
|