1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-25 03:17:13 +00:00
nixpkgs/pkgs/development/tools/build-managers/mill/default.nix

41 lines
1.3 KiB
Nix
Raw Normal View History

2018-12-03 04:15:52 +00:00
{ stdenv, fetchurl, jre, makeWrapper }:
2018-12-03 04:45:58 +00:00
2018-12-03 04:15:52 +00:00
stdenv.mkDerivation rec {
pname = "mill";
version = "0.5.2";
2018-12-03 04:15:52 +00:00
src = fetchurl {
url = "https://github.com/lihaoyi/mill/releases/download/${version}/${version}";
sha256 = "14az9znpbaads5dbcfpzw38yipmncz94i6gcl6bdjgngn0barhga";
2018-12-03 04:15:52 +00:00
};
nativeBuildInputs = [ makeWrapper ];
2019-06-19 16:45:34 +01:00
dontUnpack = true;
2018-12-03 04:15:52 +00:00
dontConfigure = true;
dontBuild = true;
2018-12-03 04:45:58 +00:00
2018-12-03 04:15:52 +00:00
installPhase = ''
runHook preInstall
install -Dm555 "$src" "$out/bin/.mill-wrapped"
# can't use wrapProgram because it sets --argv0
2019-05-31 22:50:37 +01:00
makeWrapper "$out/bin/.mill-wrapped" "$out/bin/mill" --set JAVA_HOME "${jre}"
2018-12-03 04:15:52 +00:00
runHook postInstall
'';
meta = with stdenv.lib; {
homepage = https://www.lihaoyi.com/mill;
license = licenses.mit;
description = "A build tool for Scala, Java and more";
longDescription = ''
Mill is a build tool borrowing ideas from modern tools like Bazel, to let you build
your projects in a way that's simple, fast, and predictable. Mill has built in
support for the Scala programming language, and can serve as a replacement for
SBT, but can also be extended to support any other language or platform via
modules (written in Java or Scala) or through an external subprocesses.
'';
maintainers = with maintainers; [ scalavision ];
platforms = stdenv.lib.platforms.all;
};
}