nixpkgs-suyu/pkgs/development/tools/build-managers/sbt-extras/default.nix
Tim Steinbach 28839e4b2b
sbt-extras: 3c8fcad -> 2018-09-28
Changing the versioning scheme to fix proper detection of
"versionOlder" etc.
2018-10-03 14:07:19 -04:00

39 lines
1,019 B
Nix

{ stdenv, fetchFromGitHub, which, curl, makeWrapper, jdk }:
let
rev = "1d8ee2c0a75374afa1cb687f450aeb095180882b";
version = "2018-09-27";
in
stdenv.mkDerivation {
name = "sbt-extras-${version}";
inherit version;
src = fetchFromGitHub {
owner = "paulp";
repo = "sbt-extras";
inherit rev;
sha256 = "1a6k1lcpd9sknzyx6niq56z1b90mz7br7y13yk98w06r7fmfchw5";
};
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;
};
}