3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/tools/build-managers/sbt-extras/default.nix

40 lines
1,019 B
Nix
Raw Normal View History

{ stdenv, fetchFromGitHub, which, curl, makeWrapper, jdk }:
let
2019-02-06 13:53:41 +00:00
rev = "a9f2e2592d069313329971930d1740943d19ef91";
version = "2019-01-30";
in
stdenv.mkDerivation {
name = "sbt-extras-${version}";
inherit version;
src = fetchFromGitHub {
owner = "paulp";
repo = "sbt-extras";
inherit rev;
2019-02-06 13:53:41 +00:00
sha256 = "1kkpsd3fb8lm631bwjj41x4i9a5m88y2f3flzs918y12bjkli8ji";
};
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;
};
}