mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-06-05 21:03:40 +00:00
treewide: fix icon by moving to valid path
This commit is contained in:
@@ -32,7 +32,7 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
qmake $qmakeFlags \
|
||||
PREFIX=$out \
|
||||
DESKTOPDIR=$out/share/applications \
|
||||
ICONDIR=$out/share/icons/hicolor/1024x1024/apps \
|
||||
ICONDIR=$out/share/icons \
|
||||
QtBitcoinTrader_Desktop.pro
|
||||
|
||||
runHook postConfigure
|
||||
|
||||
@@ -41,7 +41,7 @@ rustPlatform.buildRustPackage (finalAttrs: {
|
||||
];
|
||||
|
||||
postInstall = ''
|
||||
install -Dm644 icons/app_icon.png $out/share/icons/hicolor/1024x1024/apps/airgorah.png
|
||||
install -Dm644 icons/app_icon.png $out/share/icons/airgorah.png
|
||||
'';
|
||||
|
||||
desktopItems = [
|
||||
|
||||
@@ -7,7 +7,6 @@
|
||||
makeDesktopItem,
|
||||
runCommand,
|
||||
yq-go,
|
||||
imagemagick,
|
||||
_experimental-update-script-combinators,
|
||||
nix-update-script,
|
||||
}:
|
||||
@@ -26,7 +25,6 @@ flutter341.buildFlutterApplication (finalAttrs: {
|
||||
pubspecLock = lib.importJSON ./pubspec.lock.json;
|
||||
|
||||
nativeBuildInputs = [
|
||||
imagemagick
|
||||
copyDesktopItems
|
||||
];
|
||||
|
||||
@@ -47,8 +45,7 @@ flutter341.buildFlutterApplication (finalAttrs: {
|
||||
];
|
||||
|
||||
postInstall = ''
|
||||
mkdir -p $out/share/icons/hicolor/1024x1024/apps
|
||||
magick assets/alisthelper.png -resize 1024x1024 $out/share/icons/hicolor/1024x1024/apps/alisthelper.png
|
||||
install -D assets/alisthelper.png $out/share/icons/alisthelper.png
|
||||
'';
|
||||
|
||||
passthru = {
|
||||
|
||||
@@ -129,7 +129,7 @@ stdenv.mkDerivation rec {
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
|
||||
install -D ${targetPath}/resources/app/resources/linux/code.png $out/share/icons/hicolor/1024x1024/apps/azuredatastudio.png
|
||||
install -D ${targetPath}/resources/app/resources/linux/code.png $out/share/icons/azuredatastudio.png
|
||||
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
@@ -23,7 +23,7 @@ appimageTools.wrapAppImage rec {
|
||||
|
||||
extraInstallCommands = ''
|
||||
install -Dm444 ${src}/BadlionClient.desktop $out/share/applications/BadlionClient.desktop
|
||||
install -Dm444 ${src}/BadlionClient.png -t $out/share/icons/hicolor/1024x1024/apps
|
||||
install -Dm444 ${src}/BadlionClient.png -t $out/share/icons
|
||||
substituteInPlace $out/share/applications/BadlionClient.desktop \
|
||||
--replace-fail "Exec=AppRun --no-sandbox %U" "Exec=badlion-client"
|
||||
wrapProgram $out/bin/badlion-client \
|
||||
|
||||
@@ -50,7 +50,7 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
];
|
||||
|
||||
postInstall = ''
|
||||
install -Dm644 blackvoxel.png $out/share/icons/hicolor/1024x1024/apps/blackvoxel.png
|
||||
install -Dm644 blackvoxel.png $out/share/icons/blackvoxel.png
|
||||
'';
|
||||
|
||||
desktopItems = [
|
||||
|
||||
@@ -92,8 +92,8 @@ stdenv.mkDerivation rec {
|
||||
mv * $out/opt/bluemail
|
||||
ln -s $out/opt/bluemail/bluemail $out/bin/bluemail
|
||||
|
||||
mkdir -p $out/share/icons/hicolor/1024x1024/apps
|
||||
ln -s $out/opt/bluemail/resources/assets/icons/bluemailx-icon.png $out/share/icons/hicolor/1024x1024/apps/bluemail.png
|
||||
mkdir -p $out/share/icons
|
||||
ln -s $out/opt/bluemail/resources/assets/icons/bluemailx-icon.png $out/share/icons/bluemail.png
|
||||
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
@@ -87,7 +87,7 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
--add-flags ${lib.escapeShellArg commandLineArgs} \
|
||||
--add-flags "-d $out/share/bombsquad"
|
||||
|
||||
install -Dm755 ${bombsquadIcon} $out/share/icons/hicolor/1024x1024/apps/bombsquad.png
|
||||
install -Dm755 ${bombsquadIcon} $out/share/icons/bombsquad.png
|
||||
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
@@ -139,7 +139,7 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
else
|
||||
"cp -r dist/linux-unpacked/{resources,LICENSE*} $out/opt/cherry-studio"
|
||||
}
|
||||
install -Dm644 build/icon.png $out/share/icons/hicolor/1024x1024/apps/cherry-studio.png
|
||||
install -Dm644 build/icon.png $out/share/icons/cherry-studio.png
|
||||
makeWrapper ${lib.getExe electron} $out/bin/cherry-studio \
|
||||
--inherit-argv0 \
|
||||
--add-flags $out/opt/cherry-studio/resources/app.asar \
|
||||
|
||||
@@ -19,7 +19,7 @@ appimageTools.wrapType2 rec {
|
||||
in
|
||||
''
|
||||
install -Dm 444 ${appimageContents}/clockify.desktop -t $out/share/applications
|
||||
install -Dm 444 ${appimageContents}/clockify.png -t $out/share/icons/hicolor/1024x1024/apps
|
||||
install -Dm 444 ${appimageContents}/clockify.png -t $out/share/icons
|
||||
|
||||
substituteInPlace $out/share/applications/clockify.desktop \
|
||||
--replace-fail 'Exec=AppRun' 'Exec=${pname}'
|
||||
|
||||
@@ -91,7 +91,7 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
--add-flags "\''${NIXOS_OZONE_WL:+\''${WAYLAND_DISPLAY:+--ozone-platform-hint=auto --enable-features=WaylandWindowDecorations --enable-wayland-ime=true}}" \
|
||||
--inherit-argv0
|
||||
|
||||
install -Dm444 build/icon.png $out/share/icons/hicolor/1024x1024/apps/graphest.png
|
||||
install -Dm444 build/icon.png $out/share/icons/graphest.png
|
||||
install -Dm444 ${./mime.xml} $out/share/mime/packages/graphest.xml
|
||||
''
|
||||
+ lib.optionalString stdenv.hostPlatform.isDarwin ''
|
||||
|
||||
@@ -36,8 +36,10 @@ appimageTools.wrapType2 rec {
|
||||
|
||||
extraInstallCommands = ''
|
||||
install -m 444 -D ${appimageContents}/notable.desktop $out/share/applications/notable.desktop
|
||||
install -m 444 -D ${appimageContents}/usr/share/icons/hicolor/1024x1024/apps/notable.png \
|
||||
$out/share/icons/hicolor/1024x1024/apps/notable.png
|
||||
for size in 16 32 48 64 128 256 512 1024; do
|
||||
install -m 444 -D ${appimageContents}/usr/share/icons/hicolor/''${size}x''${size}/apps/notable.png \
|
||||
$out/share/icons/hicolor/''${size}x''${size}/apps/notable.png
|
||||
done
|
||||
substituteInPlace $out/share/applications/notable.desktop \
|
||||
--replace 'Exec=AppRun' 'Exec=${pname}'
|
||||
wrapProgram "$out/bin/${pname}" \
|
||||
|
||||
@@ -59,7 +59,7 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
|
||||
install -Dt $out/share/ShowMIDI/themes Themes/*
|
||||
|
||||
install -D Design/icon.png $out/share/icons/hicolor/1024x1024/apps/show-midi.png
|
||||
install -D Design/icon.png $out/share/icons/show-midi.png
|
||||
|
||||
mkdir -p $out/bin $out/lib/lv2 $out/lib/vst3
|
||||
cd Builds/LinuxMakefile/build/
|
||||
|
||||
@@ -44,7 +44,7 @@ flutter332.buildFlutterApplication rec {
|
||||
];
|
||||
|
||||
postInstall = ''
|
||||
install -Dm644 assets/logo.png $out/share/icons/hicolor/1024x1024/apps/simple-live-app.png
|
||||
install -Dm644 assets/logo.png $out/share/icons/simple-live-app.png
|
||||
'';
|
||||
|
||||
extraWrapProgramArgs = ''
|
||||
|
||||
@@ -44,7 +44,7 @@ rustPlatform.buildRustPackage (finalAttrs: {
|
||||
postInstall = ''
|
||||
mv $out/bin/snow_frontend_egui $out/bin/snowemu
|
||||
|
||||
install -Dm644 assets/snow_icon.png $out/share/icons/hicolor/1024x1024/apps/snowemu.png
|
||||
install -Dm644 assets/snow_icon.png $out/share/icons/snowemu.png
|
||||
|
||||
wrapProgram $out/bin/snowemu \
|
||||
--prefix LD_LIBRARY_PATH : ${
|
||||
|
||||
@@ -31,7 +31,7 @@ buildNpmPackage (finalAttrs: {
|
||||
];
|
||||
|
||||
postInstall = ''
|
||||
install -Dpm644 resources/icon.png $out/share/icons/hicolor/1024x1024/apps/thorium-reader.png
|
||||
install -Dpm644 resources/icon.png $out/share/icons/thorium-reader.png
|
||||
|
||||
cp -r dist/* $out/lib/node_modules/EDRLab.ThoriumReader/
|
||||
|
||||
|
||||
@@ -80,8 +80,8 @@ stdenv.mkDerivation rec {
|
||||
mv * $out/opt/tk-safe
|
||||
ln -s $out/opt/tk-safe/app/tk-safe $out/bin/tk-safe
|
||||
|
||||
mkdir -p $out/share/icons/hicolor/1024x1024/apps
|
||||
ln -s $out/opt/tk-safe/meta/gui/icon.png $out/share/icons/hicolor/1024x1024/apps/tk-safe.png
|
||||
mkdir -p $out/share/icons
|
||||
ln -s $out/opt/tk-safe/meta/gui/icon.png $out/share/icons/tk-safe.png
|
||||
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
@@ -42,7 +42,7 @@ flutter341.buildFlutterApplication (finalAttrs: {
|
||||
'';
|
||||
|
||||
postInstall = ''
|
||||
install -m 444 -D assets/icon/tts_mod_vault_icon.png $out/share/icons/hicolor/1024x1024/apps/tts_mod_vault.png
|
||||
install -m 444 -D assets/icon/tts_mod_vault_icon.png $out/share/icons/tts_mod_vault.png
|
||||
'';
|
||||
|
||||
passthru = {
|
||||
|
||||
@@ -50,7 +50,7 @@ flutter341.buildFlutterApplication (finalAttrs: {
|
||||
];
|
||||
|
||||
postInstall = ''
|
||||
install -D --mode=0644 debian/gui/venera.png $out/share/icons/hicolor/1024x1024/apps/venera.png
|
||||
install -D --mode=0644 debian/gui/venera.png $out/share/icons/venera.png
|
||||
'';
|
||||
|
||||
extraWrapProgramArgs = ''
|
||||
|
||||
@@ -26,7 +26,7 @@ appimageTools.wrapType2 {
|
||||
extraInstallCommands = ''
|
||||
install -m 444 -D ${appImageContents}/volanta.desktop $out/share/applications/volanta.desktop
|
||||
install -m 444 -D ${appImageContents}/volanta.png \
|
||||
$out/share/icons/hicolor/1024x1024/apps/volanta.png
|
||||
$out/share/icons/volanta.png
|
||||
substituteInPlace $out/share/applications/volanta.desktop \
|
||||
--replace-fail 'Exec=AppRun' 'Exec=env APPIMAGE=true volanta'
|
||||
wrapProgram $out/bin/volanta \
|
||||
|
||||
@@ -61,7 +61,7 @@ stdenvNoCC.mkDerivation (finalAttrs: {
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
|
||||
install -Dm644 "assets/img/winbox.png" -t "$out/share/icons/hicolor/1024x1024/apps"
|
||||
install -Dm644 "assets/img/winbox.png" -t "$out/share/icons"
|
||||
install -Dm755 "WinBox" "$out/bin/WinBox"
|
||||
|
||||
wrapProgram "$out/bin/WinBox" --run "${lib.getExe finalAttrs.migrationScript}"
|
||||
|
||||
@@ -79,7 +79,7 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
${builtins.toJSON profiles}
|
||||
EOF
|
||||
install -Dm644 $out/app/windterm/license.txt $out/share/licenses/windterm/license.txt
|
||||
install -Dm644 $out/app/windterm/windterm.png -t $out/share/icons/hicolor/1024x1024/apps
|
||||
install -Dm644 $out/app/windterm/windterm.png -t $out/share/icons
|
||||
substituteInPlace $out/app/windterm/windterm.desktop \
|
||||
--replace-fail "/usr/bin/" ""
|
||||
install -Dm644 $out/app/windterm/windterm.desktop $out/share/applications/windterm.desktop
|
||||
|
||||
@@ -28,7 +28,7 @@ appimageTools.wrapType2 {
|
||||
--add-flags "\''${NIXOS_OZONE_WL:+\''${WAYLAND_DISPLAY:+--ozone-platform-hint=auto --enable-features=WaylandWindowDecorations --enable-wayland-ime=true}}"
|
||||
|
||||
install -Dm444 ${contents}/wootility.desktop -t $out/share/applications
|
||||
install -Dm444 ${contents}/wootility.png -t $out/share/icons/hicolor/1024x1024/apps
|
||||
install -Dm444 ${contents}/wootility.png -t $out/share/icons
|
||||
substituteInPlace $out/share/applications/wootility.desktop \
|
||||
--replace-fail 'Exec=AppRun --no-sandbox' 'Exec=wootility'
|
||||
'';
|
||||
|
||||
@@ -206,7 +206,7 @@ buildGoModule {
|
||||
];
|
||||
|
||||
postInstall = ''
|
||||
install -Dm644 ../assets/app.png $out/share/icons/hicolor/1024x1024/apps/wox.png
|
||||
install -Dm644 ../assets/app.png $out/share/icons/wox.png
|
||||
'';
|
||||
|
||||
meta = metaCommon // {
|
||||
|
||||
@@ -25,8 +25,10 @@ appimageTools.wrapType2 {
|
||||
install -Dm444 ${appimageContents}/zoho-mail-desktop.desktop \
|
||||
$out/share/applications/zoho-mail-desktop.desktop
|
||||
|
||||
install -Dm444 ${appimageContents}/usr/share/icons/hicolor/1024x1024/apps/zoho-mail-desktop.png \
|
||||
$out/share/icons/hicolor/1024x1024/apps/zoho-mail-desktop.png
|
||||
for size in 16 32 48 64 128 256 512 1024; do
|
||||
install -Dm444 ${appimageContents}/usr/share/icons/hicolor/''${size}x''${size}/apps/zoho-mail-desktop.png \
|
||||
$out/share/icons/hicolor/''${size}x''${size}/apps/zoho-mail-desktop.png
|
||||
done
|
||||
|
||||
substituteInPlace $out/share/applications/zoho-mail-desktop.desktop \
|
||||
--replace-fail 'Exec=AppRun' 'Exec=${pname}'
|
||||
|
||||
Reference in New Issue
Block a user