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
13
pkgs/development/tools/build-managers/boot/builder.sh
Normal file
13
pkgs/development/tools/build-managers/boot/builder.sh
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
source $stdenv/setup
|
||||
|
||||
boot_bin=$out/bin/boot
|
||||
|
||||
mkdir -pv $(dirname $boot_bin)
|
||||
cp -v $src $boot_bin
|
||||
chmod -v 755 $boot_bin
|
||||
|
||||
patchShebangs $boot_bin
|
||||
|
||||
sed -i \
|
||||
-e "s;\${BOOT_JAVA_COMMAND:-java};\${BOOT_JAVA_COMMAND:-${jdk}/bin/java};g" \
|
||||
$boot_bin
|
||||
25
pkgs/development/tools/build-managers/boot/default.nix
Normal file
25
pkgs/development/tools/build-managers/boot/default.nix
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
{ lib, stdenv, fetchurl, jdk }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
version = "2.7.2";
|
||||
pname = "boot";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://github.com/boot-clj/boot-bin/releases/download/${version}/boot.sh";
|
||||
sha256 = "1hqp3xxmsj5vkym0l3blhlaq9g3w0lhjgmp37g6y3rr741znkk8c";
|
||||
};
|
||||
|
||||
inherit jdk;
|
||||
|
||||
builder = ./builder.sh;
|
||||
|
||||
propagatedBuildInputs = [ jdk ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Build tooling for Clojure";
|
||||
homepage = "https://boot-clj.github.io/";
|
||||
license = licenses.epl10;
|
||||
platforms = platforms.linux ++ platforms.darwin;
|
||||
maintainers = with maintainers; [ ragge ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue