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
54
pkgs/development/tools/buildah/wrapper.nix
Normal file
54
pkgs/development/tools/buildah/wrapper.nix
Normal file
|
|
@ -0,0 +1,54 @@
|
|||
{ buildah-unwrapped
|
||||
, runCommand
|
||||
, makeWrapper
|
||||
, lib
|
||||
, extraPackages ? []
|
||||
, buildah
|
||||
, runc # Default container runtime
|
||||
, crun # Container runtime (default with cgroups v2 for podman/buildah)
|
||||
, conmon # Container runtime monitor
|
||||
, slirp4netns # User-mode networking for unprivileged namespaces
|
||||
, fuse-overlayfs # CoW for images, much faster than default vfs
|
||||
, util-linux # nsenter
|
||||
, cni-plugins # not added to path
|
||||
, iptables
|
||||
}:
|
||||
|
||||
let
|
||||
buildah = buildah-unwrapped;
|
||||
|
||||
preferLocalBuild = true;
|
||||
|
||||
binPath = lib.makeBinPath ([
|
||||
runc
|
||||
crun
|
||||
conmon
|
||||
slirp4netns
|
||||
fuse-overlayfs
|
||||
util-linux
|
||||
iptables
|
||||
] ++ extraPackages);
|
||||
|
||||
in runCommand buildah.name {
|
||||
name = "${buildah.pname}-wrapper-${buildah.version}";
|
||||
inherit (buildah) pname version;
|
||||
|
||||
meta = builtins.removeAttrs buildah.meta [ "outputsToInstall" ];
|
||||
|
||||
outputs = [
|
||||
"out"
|
||||
"man"
|
||||
];
|
||||
|
||||
nativeBuildInputs = [
|
||||
makeWrapper
|
||||
];
|
||||
|
||||
} ''
|
||||
ln -s ${buildah.man} $man
|
||||
|
||||
mkdir -p $out/bin
|
||||
ln -s ${buildah-unwrapped}/share $out/share
|
||||
makeWrapper ${buildah-unwrapped}/bin/buildah $out/bin/buildah \
|
||||
--prefix PATH : ${binPath}
|
||||
''
|
||||
Loading…
Add table
Add a link
Reference in a new issue