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/networking/sniffnet | |
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/networking/sniffnet')
-rw-r--r-- | pkgs/applications/networking/sniffnet/default.nix | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/pkgs/applications/networking/sniffnet/default.nix b/pkgs/applications/networking/sniffnet/default.nix index b3cb5316ec0c8..6142aa3898e2a 100644 --- a/pkgs/applications/networking/sniffnet/default.nix +++ b/pkgs/applications/networking/sniffnet/default.nix @@ -50,6 +50,16 @@ rustPlatform.buildRustPackage rec { "--skip=secondary_threads::check_updates::tests::fetch_latest_release_from_github" ]; + postInstall = '' + for res in $(ls resources/packaging/linux/graphics | sed -e 's/sniffnet_//g' -e 's/x.*//g'); do + install -Dm444 resources/packaging/linux/graphics/sniffnet_''${res}x''${res}.png \ + $out/share/icons/hicolor/''${res}x''${res}/apps/sniffnet.png + done + install -Dm444 resources/packaging/linux/sniffnet.desktop -t $out/share/applications + substituteInPlace $out/share/applications/sniffnet.desktop \ + --replace 'Exec=/usr/bin/sniffnet' 'Exec=sniffnet' + ''; + postFixup = lib.optionalString stdenv.isLinux '' patchelf $out/bin/sniffnet \ --add-rpath ${lib.makeLibraryPath [ vulkan-loader xorg.libX11 ]} |