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/applications/networking/cluster/helm/wrapper.nix
Normal file
44
pkgs/applications/networking/cluster/helm/wrapper.nix
Normal file
|
|
@ -0,0 +1,44 @@
|
|||
{ symlinkJoin, lib, makeWrapper, writeText }:
|
||||
|
||||
helm:
|
||||
|
||||
let
|
||||
wrapper = {
|
||||
plugins ? [],
|
||||
extraMakeWrapperArgs ? ""
|
||||
}:
|
||||
let
|
||||
|
||||
initialMakeWrapperArgs = [
|
||||
];
|
||||
|
||||
pluginsDir = symlinkJoin {
|
||||
name = "helm-plugins";
|
||||
paths = plugins;
|
||||
};
|
||||
in
|
||||
symlinkJoin {
|
||||
name = "helm-${lib.getVersion helm}";
|
||||
|
||||
# Remove the symlinks created by symlinkJoin which we need to perform
|
||||
# extra actions upon
|
||||
postBuild = ''
|
||||
wrapProgram "$out/bin/helm" \
|
||||
"--set" "HELM_PLUGINS" "${pluginsDir}" ${extraMakeWrapperArgs}
|
||||
'';
|
||||
paths = [ helm pluginsDir ];
|
||||
|
||||
preferLocalBuild = true;
|
||||
|
||||
nativeBuildInputs = [ makeWrapper ];
|
||||
passthru = { unwrapped = helm; };
|
||||
|
||||
meta = helm.meta // {
|
||||
# To prevent builds on hydra
|
||||
hydraPlatforms = [];
|
||||
# prefer wrapper over the package
|
||||
priority = (helm.meta.priority or 0) - 1;
|
||||
};
|
||||
};
|
||||
in
|
||||
lib.makeOverridable wrapper
|
||||
Loading…
Add table
Add a link
Reference in a new issue