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
44
pkgs/development/tools/build-managers/buck/default.nix
Normal file
44
pkgs/development/tools/build-managers/buck/default.nix
Normal file
|
|
@ -0,0 +1,44 @@
|
|||
{ lib, stdenv, fetchFromGitHub, jdk8, ant, python3, watchman, bash, makeWrapper }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "buck";
|
||||
version = "2021.05.05.01";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "facebook";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
sha256 = "sha256-mASJCLxW7320MXYUUWYfaxs9AbSdltxlae8OQsPUZJc=";
|
||||
};
|
||||
|
||||
patches = [ ./pex-mtime.patch ];
|
||||
|
||||
postPatch = ''
|
||||
grep -l -r '/bin/bash' --null | xargs -0 sed -i -e "s!/bin/bash!${bash}/bin/bash!g"
|
||||
'';
|
||||
|
||||
nativeBuildInputs = [ makeWrapper python3 jdk8 ant watchman ];
|
||||
|
||||
buildPhase = ''
|
||||
# Set correct version, see https://github.com/facebook/buck/issues/2607
|
||||
echo v${version} > .buckrelease
|
||||
|
||||
ant
|
||||
|
||||
PYTHONDONTWRITEBYTECODE=true ./bin/buck build -c buck.release_version=${version} buck
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
install -D -m755 buck-out/gen/*/programs/buck.pex $out/bin/buck
|
||||
wrapProgram $out/bin/buck \
|
||||
--prefix PATH : "${lib.makeBinPath [ jdk8 watchman python3 ]}"
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://buck.build/";
|
||||
description = "A high-performance build tool";
|
||||
maintainers = [ maintainers.jgertm maintainers.marsam ];
|
||||
license = licenses.asl20;
|
||||
platforms = platforms.all;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue