diff options
Diffstat (limited to 'pkgs/applications/graphics')
-rw-r--r-- | pkgs/applications/graphics/cloudcompare/default.nix | 9 | ||||
-rw-r--r-- | pkgs/applications/graphics/epick/default.nix | 6 | ||||
-rw-r--r-- | pkgs/applications/graphics/goxel/default.nix | 8 | ||||
-rw-r--r-- | pkgs/applications/graphics/oculante/default.nix | 5 | ||||
-rw-r--r-- | pkgs/applications/graphics/pizarra/default.nix | 9 |
5 files changed, 37 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[@]}") diff --git a/pkgs/applications/graphics/epick/default.nix b/pkgs/applications/graphics/epick/default.nix index fd767e356f12c..c27cbf94476b5 100644 --- a/pkgs/applications/graphics/epick/default.nix +++ b/pkgs/applications/graphics/epick/default.nix @@ -41,6 +41,12 @@ rustPlatform.buildRustPackage rec { AppKit ]; + postInstall = '' + install -Dm444 assets/epick.desktop -t $out/share/applications + install -Dm444 assets/icon.svg $out/share/icons/hicolor/scalable/apps/epick.svg + install -Dm444 assets/icon.png $out/share/icons/hicolor/48x48/apps/epick.png + ''; + postFixup = lib.optionalString stdenv.isLinux '' patchelf $out/bin/epick --add-rpath ${lib.makeLibraryPath [ libGL ]} ''; diff --git a/pkgs/applications/graphics/goxel/default.nix b/pkgs/applications/graphics/goxel/default.nix index 16b3a8c5037b1..cf3a31a1d4bf1 100644 --- a/pkgs/applications/graphics/goxel/default.nix +++ b/pkgs/applications/graphics/goxel/default.nix @@ -21,6 +21,14 @@ stdenv.mkDerivation rec { installPhase = '' install -D ./goxel $out/bin/goxel + + for res in $(ls data/icons | sed -e 's/icon//g' -e 's/.png//g'); do + install -Dm444 data/icons/icon$res.png $out/share/icons/hicolor/''${res}x''${res}/apps/goxel.png + done + + install -Dm444 snap/gui/goxel.desktop -t $out/share/applications + substituteInPlace $out/share/applications/goxel.desktop \ + --replace 'Icon=''${SNAP}/icon.png' 'Icon=goxel' ''; meta = with lib; { diff --git a/pkgs/applications/graphics/oculante/default.nix b/pkgs/applications/graphics/oculante/default.nix index 676cb3452afaa..1351f711f56d0 100644 --- a/pkgs/applications/graphics/oculante/default.nix +++ b/pkgs/applications/graphics/oculante/default.nix @@ -66,6 +66,11 @@ rustPlatform.buildRustPackage rec { "--skip=bench" ]; + postInstall = '' + install -Dm444 $src/res/oculante.png -t $out/share/icons/hicolor/128x128/apps/ + install -Dm444 $src/res/oculante.desktop -t $out/share/applications + ''; + postFixup = lib.optionalString stdenv.isLinux '' patchelf $out/bin/oculante --add-rpath ${lib.makeLibraryPath [ libxkbcommon libX11 ]} ''; diff --git a/pkgs/applications/graphics/pizarra/default.nix b/pkgs/applications/graphics/pizarra/default.nix index ccf21d630e649..f9d7fc650647d 100644 --- a/pkgs/applications/graphics/pizarra/default.nix +++ b/pkgs/applications/graphics/pizarra/default.nix @@ -30,6 +30,15 @@ rustPlatform.buildRustPackage rec { buildInputs = [ gtk3-x11 atk glib librsvg ]; + postInstall = '' + install -Dm444 res/icons/tk.categulario.pizarra.svg $out/share/icons/hicolor/scalable/apps/pizarra.svg + install -Dm444 res/pizarra.desktop -t $out/share/applications + substituteInPlace $out/share/applications/pizarra.desktop \ + --replace "TryExec=/usr/bin/" "TryExec=" \ + --replace "Exec=/usr/bin/" "Exec=" \ + --replace "Icon=/usr/share/icons/hicolor/scalable/apps/pizarra.svg" "Icon=pizarra" + ''; + meta = with lib; { description = "A simple blackboard written in GTK"; longDescription = '' |