mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-01-31 04:58:01 +00:00
wrapper-manager-fds/modules: update makeWrapper names to be more proper
This commit is contained in:
parent
d7338a8722
commit
c3cdc27721
@ -53,10 +53,13 @@
|
||||
build = {
|
||||
toplevel =
|
||||
let
|
||||
makeWrapperArg0 =
|
||||
if config.build.isBinary then "makeBinaryWrapper" else "makeShellWrapper";
|
||||
|
||||
mkWrapBuild =
|
||||
wrappers:
|
||||
lib.concatMapStrings (v: ''
|
||||
makeWrapper "${v.arg0}" "${builtins.placeholder "out"}/bin/${v.executableName}" ${lib.concatStringsSep " " v.makeWrapperArgs}
|
||||
${makeWrapperArg0} "${v.arg0}" "${builtins.placeholder "out"}/bin/${v.executableName}" ${lib.concatStringsSep " " v.makeWrapperArgs}
|
||||
'') wrappers;
|
||||
|
||||
mkDesktopEntries = desktopEntries: builtins.map (entry: pkgs.makeDesktopItem entry) desktopEntries;
|
||||
@ -69,7 +72,7 @@
|
||||
name = "wrapper-manager-fds-wrapped-package";
|
||||
paths = desktopEntries ++ config.basePackages;
|
||||
nativeBuildInputs =
|
||||
if config.build.isBinary then [ pkgs.makeBinaryWrapper ] else [ pkgs.makeWrapper ];
|
||||
if config.build.isBinary then [ pkgs.makeBinaryWrapper ] else [ pkgs.makeShellWrapper ];
|
||||
postBuild = ''
|
||||
${config.build.extraSetup}
|
||||
${mkWrapBuild (lib.attrValues config.wrappers)}
|
||||
|
Loading…
Reference in New Issue
Block a user