mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-25 07:05:13 +00:00
40 lines
1019 B
Nix
40 lines
1019 B
Nix
{ stdenv, fetchFromGitHub, which, curl, makeWrapper, jdk }:
|
|
|
|
let
|
|
rev = "f0669e9b6745b65fae3ec58c2d6a2bef133db456";
|
|
version = "2019-10-21";
|
|
in
|
|
stdenv.mkDerivation {
|
|
name = "sbt-extras-${version}";
|
|
inherit version;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "paulp";
|
|
repo = "sbt-extras";
|
|
inherit rev;
|
|
sha256 = "1pc8l78qp51ixa26z0n1djwmazpxw1p4j4w4njil7ywxl9xvr92i";
|
|
};
|
|
|
|
dontBuild = true;
|
|
|
|
buildInputs = [ makeWrapper ];
|
|
|
|
installPhase = ''
|
|
mkdir -p $out/bin
|
|
|
|
substituteInPlace bin/sbt --replace 'declare java_cmd="java"' 'declare java_cmd="${jdk}/bin/java"'
|
|
|
|
install bin/sbt $out/bin
|
|
|
|
wrapProgram $out/bin/sbt --prefix PATH : ${stdenv.lib.makeBinPath [ which curl ]}
|
|
'';
|
|
|
|
meta = {
|
|
description = "A more featureful runner for sbt, the simple/scala/standard build tool";
|
|
homepage = https://github.com/paulp/sbt-extras;
|
|
license = stdenv.lib.licenses.bsd3;
|
|
maintainers = with stdenv.lib.maintainers; [ puffnfresh ];
|
|
platforms = stdenv.lib.platforms.unix;
|
|
};
|
|
}
|