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
46
pkgs/development/tools/build-managers/sbt/default.nix
Normal file
46
pkgs/development/tools/build-managers/sbt/default.nix
Normal file
|
|
@ -0,0 +1,46 @@
|
|||
{ lib
|
||||
, stdenv
|
||||
, fetchurl
|
||||
, jre
|
||||
, autoPatchelfHook
|
||||
, zlib
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "sbt";
|
||||
version = "1.6.2";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://github.com/sbt/sbt/releases/download/v${version}/sbt-${version}.tgz";
|
||||
sha256 = "sha256-Y3Y3tsTm+gSrYs02QGHjKxJICwkAHNIzA99is2+t1EA=";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
echo -java-home ${jre.home} >>conf/sbtopts
|
||||
'';
|
||||
|
||||
nativeBuildInputs = lib.optionals stdenv.isLinux [ autoPatchelfHook ];
|
||||
|
||||
buildInputs = lib.optionals stdenv.isLinux [ zlib ];
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
|
||||
mkdir -p $out/share/sbt $out/bin
|
||||
cp -ra . $out/share/sbt
|
||||
ln -sT ../share/sbt/bin/sbt $out/bin/sbt
|
||||
ln -sT ../share/sbt/bin/sbtn-x86_64-${
|
||||
if (stdenv.isDarwin) then "apple-darwin" else "pc-linux"
|
||||
} $out/bin/sbtn
|
||||
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://www.scala-sbt.org/";
|
||||
license = licenses.bsd3;
|
||||
description = "A build tool for Scala, Java and more";
|
||||
maintainers = with maintainers; [ nequissimus ];
|
||||
platforms = platforms.unix;
|
||||
};
|
||||
}
|
||||
18
pkgs/development/tools/build-managers/sbt/scala-native.nix
Normal file
18
pkgs/development/tools/build-managers/sbt/scala-native.nix
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
{ lib, sbt, makeWrapper, boehmgc, libunwind, re2, llvmPackages, zlib }:
|
||||
|
||||
sbt.overrideDerivation(old: {
|
||||
nativeBuildInputs = [ makeWrapper ];
|
||||
|
||||
version = "0.13.16";
|
||||
|
||||
sha256 = "033nvklclvbirhpsiy28d3ccmbm26zcs9vb7j8jndsc1ln09awi2";
|
||||
|
||||
postFixup = ''
|
||||
wrapProgram $out/bin/sbt \
|
||||
--set CLANG_PATH "${llvmPackages.clang}/bin/clang" \
|
||||
--set CLANGPP_PATH "${llvmPackages.clang}/bin/clang" \
|
||||
--set CPATH "${lib.makeSearchPathOutput "dev" "include" [ re2 zlib boehmgc libunwind llvmPackages.libcxxabi llvmPackages.libcxx ]}/c++/v1" \
|
||||
--set LIBRARY_PATH "${lib.makeLibraryPath [ re2 zlib boehmgc libunwind llvmPackages.libcxxabi llvmPackages.libcxx ]}" \
|
||||
--set NIX_CFLAGS_LINK "-lc++abi -lc++"
|
||||
'';
|
||||
})
|
||||
Loading…
Add table
Add a link
Reference in a new issue