mirror of
https://github.com/foo-dogsquared/nix-module-wrapper-manager-fds.git
synced 2025-01-31 04:58:17 +00:00
wrapper-manager-fds/modules: force generated desktop files into path
`pkgs.symlinkJoin` probably doesn't like that but for now, this will do.
This commit is contained in:
parent
fa0402272f
commit
7410f1a07b
@ -39,21 +39,21 @@
|
||||
|
||||
mkDesktopEntries = desktopEntries:
|
||||
builtins.map (entry: pkgs.makeDesktopItem entry) desktopEntries;
|
||||
|
||||
desktopEntries =
|
||||
mkDesktopEntries (lib.attrValues config.xdg.desktopEntries);
|
||||
in
|
||||
pkgs.symlinkJoin {
|
||||
name = "wrapper-manager-fds-wrapped-package";
|
||||
paths = config.basePackages;
|
||||
paths = desktopEntries ++ config.basePackages;
|
||||
nativeBuildInputs =
|
||||
if config.build.isBinary
|
||||
then [ pkgs.makeBinaryWrapper ]
|
||||
else [ pkgs.makeWrapper ]
|
||||
++ lib.optionals (pkgs.stdenv.isLinux && config.xdg.desktopEntries != { }) [ pkgs.copyDesktopItems ];
|
||||
else [ pkgs.makeWrapper ];
|
||||
postBuild = ''
|
||||
${config.build.extraSetup}
|
||||
${mkWrapBuild (lib.attrValues config.wrappers)}
|
||||
'';
|
||||
desktopItems =
|
||||
mkDesktopEntries (lib.attrValues config.xdg.desktopEntries);
|
||||
};
|
||||
};
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user