diff options
author | Weijia Wang <9713184+wegank@users.noreply.github.com> | 2023-12-08 01:12:32 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-08 01:12:32 +0100 |
commit | 68ef996007335af598934efcc2fa8fb97f0dd672 (patch) | |
tree | b078613dcd9be3f0d897dfb62df87f10127cbf9d /pkgs/applications/graphics/cloudcompare/default.nix | |
parent | 402ae9be2a897bca6681453eca85c32d45115f71 (diff) | |
parent | efdec26090fe6c61327b67d933e39d694da36bc2 (diff) |
Merge pull request #271604 from h7x4/treewide-install-missing-desktop-items
treewide: install missing desktopItems
Diffstat (limited to 'pkgs/applications/graphics/cloudcompare/default.nix')
-rw-r--r-- | pkgs/applications/graphics/cloudcompare/default.nix | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/pkgs/applications/graphics/cloudcompare/default.nix b/pkgs/applications/graphics/cloudcompare/default.nix index 6a8e973c1bebd..f2d008f7492bd 100644 --- a/pkgs/applications/graphics/cloudcompare/default.nix +++ b/pkgs/applications/graphics/cloudcompare/default.nix @@ -95,6 +95,15 @@ mkDerivation rec { dontWrapGApps = true; + postInstall = '' + install -Dm444 $src/snap/gui/{ccViewer,cloudcompare}.png -t $out/share/icons/hicolor/256x256/apps + install -Dm444 $src/snap/gui/{ccViewer,cloudcompare}.desktop -t $out/share/applications + substituteInPlace $out/share/applications/{ccViewer,cloudcompare}.desktop \ + --replace 'Exec=cloudcompare.' 'Exec=' \ + --replace 'Icon=''${SNAP}/meta/gui/' 'Icon=' \ + --replace '.png' "" + ''; + # fix file dialogs crashing on non-NixOS (and avoid double wrapping) preFixup = '' qtWrapperArgs+=("''${gappsWrapperArgs[@]}") |