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
39
pkgs/applications/window-managers/wayfire/wrapper.nix
Normal file
39
pkgs/applications/window-managers/wayfire/wrapper.nix
Normal file
|
|
@ -0,0 +1,39 @@
|
|||
{ runCommand, lib, makeWrapper, wayfirePlugins }:
|
||||
|
||||
let
|
||||
inherit (lib) escapeShellArg makeBinPath;
|
||||
|
||||
xmlPath = plugin: "${plugin}/share/wayfire/metadata/wf-shell";
|
||||
|
||||
makePluginPath = lib.makeLibraryPath;
|
||||
makePluginXMLPath = lib.concatMapStringsSep ":" xmlPath;
|
||||
in
|
||||
|
||||
application:
|
||||
|
||||
choosePlugins:
|
||||
|
||||
let
|
||||
plugins = choosePlugins wayfirePlugins;
|
||||
in
|
||||
|
||||
runCommand "${application.name}-wrapped" {
|
||||
nativeBuildInputs = [ makeWrapper ];
|
||||
|
||||
passthru = application.passthru // {
|
||||
unwrapped = application;
|
||||
};
|
||||
|
||||
inherit (application) meta;
|
||||
} ''
|
||||
mkdir -p $out/bin
|
||||
for bin in ${application}/bin/*
|
||||
do
|
||||
makeWrapper "$bin" $out/bin/''${bin##*/} \
|
||||
--suffix PATH : ${escapeShellArg (makeBinPath plugins)} \
|
||||
--suffix WAYFIRE_PLUGIN_PATH : ${escapeShellArg (makePluginPath plugins)} \
|
||||
--suffix WAYFIRE_PLUGIN_XML_PATH : ${escapeShellArg (makePluginXMLPath plugins)}
|
||||
done
|
||||
find ${application} -mindepth 1 -maxdepth 1 -not -name bin \
|
||||
-exec ln -s '{}' $out ';'
|
||||
''
|
||||
Loading…
Add table
Add a link
Reference in a new issue