2020-04-24 23:36:52 +00:00
|
|
|
{ stdenv, fetchFromGitHub, which, curl, makeWrapper, jdk }:
|
|
|
|
|
|
|
|
let
|
2020-06-02 18:00:15 +00:00
|
|
|
rev = "fa06c268993aa72fc094dce06a71182827aad395";
|
|
|
|
version = "2020-06-01";
|
2020-04-24 23:36:52 +00:00
|
|
|
in
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
name = "sbt-extras-${version}";
|
|
|
|
inherit version;
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "paulp";
|
|
|
|
repo = "sbt-extras";
|
|
|
|
inherit rev;
|
2020-06-02 18:00:15 +00:00
|
|
|
sha256 = "0a4dxpvw21yi3pji1s31pp17xplmczn2f2yijn58an9m2angw83j";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|