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
31
pkgs/development/r-modules/wrapper.nix
Normal file
31
pkgs/development/r-modules/wrapper.nix
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
{ symlinkJoin, R, makeWrapper, recommendedPackages, packages }:
|
||||
symlinkJoin {
|
||||
name = R.name + "-wrapper";
|
||||
preferLocalBuild = true;
|
||||
allowSubstitutes = false;
|
||||
|
||||
buildInputs = [R] ++ recommendedPackages ++ packages;
|
||||
paths = [ R ];
|
||||
|
||||
nativeBuildInputs = [makeWrapper];
|
||||
|
||||
postBuild = ''
|
||||
cd ${R}/bin
|
||||
for exe in *; do
|
||||
rm "$out/bin/$exe"
|
||||
|
||||
makeWrapper "${R}/bin/$exe" "$out/bin/$exe" \
|
||||
--prefix "R_LIBS_SITE" ":" "$R_LIBS_SITE"
|
||||
done
|
||||
'';
|
||||
|
||||
# Make the list of recommended R packages accessible to other packages such as rpy2
|
||||
passthru = { inherit recommendedPackages; };
|
||||
|
||||
meta = R.meta // {
|
||||
# To prevent builds on hydra
|
||||
hydraPlatforms = [];
|
||||
# prefer wrapper over the package
|
||||
priority = (R.meta.priority or 0) - 1;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue