uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
52
pkgs/development/tools/build-managers/mill/default.nix
Normal file
52
pkgs/development/tools/build-managers/mill/default.nix
Normal file
|
|
@ -0,0 +1,52 @@
|
|||
{ lib, stdenv, fetchurl, jre, makeWrapper }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "mill";
|
||||
version = "0.10.4";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://github.com/com-lihaoyi/mill/releases/download/${version}/${version}-assembly";
|
||||
hash = "sha256-psSbz5ZcgLDkS/9Q/PLe4Ufj7GOR8Sv1rLhA2Hs3zsw=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ makeWrapper ];
|
||||
|
||||
dontUnpack = true;
|
||||
dontConfigure = true;
|
||||
dontBuild = true;
|
||||
|
||||
# this is mostly downloading a pre-built artifact
|
||||
preferLocal = true;
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
install -Dm555 "$src" "$out/bin/.mill-wrapped"
|
||||
# can't use wrapProgram because it sets --argv0
|
||||
makeWrapper "$out/bin/.mill-wrapped" "$out/bin/mill" \
|
||||
--prefix PATH : "${jre}/bin" \
|
||||
--set JAVA_HOME "${jre}"
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
doInstallCheck = true;
|
||||
# The default release is a script which will do an impure download
|
||||
# just ensure that the application can run without network
|
||||
installCheckPhase = ''
|
||||
$out/bin/mill --help > /dev/null
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://com-lihaoyi.github.io/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 = lib.platforms.all;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue