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/compilers/chez-racket/default.nix
Normal file
52
pkgs/development/compilers/chez-racket/default.nix
Normal file
|
|
@ -0,0 +1,52 @@
|
|||
{ stdenv, buildPackages, callPackage }:
|
||||
|
||||
let
|
||||
chezSystemMap = {
|
||||
# See `/workarea` of source code for list of systems
|
||||
"aarch64-darwin" = "tarm64osx";
|
||||
"aarch64-linux" = "tarm64le";
|
||||
"armv7l-linux" = "tarm32le";
|
||||
"x86_64-darwin" = "ta6osx";
|
||||
"x86_64-linux" = "ta6le";
|
||||
};
|
||||
inherit (stdenv.hostPlatform) system;
|
||||
chezSystem = chezSystemMap.${system} or (throw "Add ${system} to chezSystemMap to enable building chez-racket");
|
||||
# Chez Scheme uses an ad-hoc `configure`, hence we don't use the usual
|
||||
# stdenv abstractions.
|
||||
forBoot = {
|
||||
pname = "chez-scheme-racket-boot";
|
||||
configurePhase = ''
|
||||
runHook preConfigure
|
||||
./configure --pb ZLIB=$ZLIB LZ4=$LZ4
|
||||
runHook postConfigure
|
||||
'';
|
||||
makeFlags = [ "${chezSystem}.bootquick" ];
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
mkdir -p $out
|
||||
pushd boot
|
||||
mv $(ls -1 | grep -v "^pb$") -t $out
|
||||
popd
|
||||
runHook postInstall
|
||||
'';
|
||||
};
|
||||
boot = buildPackages.callPackage (import ./shared.nix forBoot) {};
|
||||
forFinal = {
|
||||
pname = "chez-scheme-racket";
|
||||
configurePhase = ''
|
||||
runHook preConfigure
|
||||
cp -r ${boot}/* -t ./boot
|
||||
./configure -m=${chezSystem} --installprefix=$out --installman=$out/share/man ZLIB=$ZLIB LZ4=$LZ4
|
||||
runHook postConfigure
|
||||
'';
|
||||
preBuild = ''
|
||||
pushd ${chezSystem}/c
|
||||
'';
|
||||
postBuild = ''
|
||||
popd
|
||||
'';
|
||||
setupHook = ./setup-hook.sh;
|
||||
};
|
||||
final = callPackage (import ./shared.nix forFinal) {};
|
||||
in
|
||||
final
|
||||
Loading…
Add table
Add a link
Reference in a new issue