Commit d66acff2 authored by pancaek's avatar pancaek
Browse files

trackma: move icon to spec-compliant location

parent 9aab3f3b
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -10,6 +10,7 @@
  qt5,
  makeDesktopItem,
  copyDesktopItems,
  imagemagick,
  withCurses ? false,
  withGTK ? false,
  withQT ? false,
@@ -46,6 +47,7 @@ python3.pkgs.buildPythonApplication (finalAttrs: {
  nativeBuildInputs = [
    copyDesktopItems
    python3.pkgs.poetry-core
    imagemagick
  ]
  ++ lib.optionals withGTK [
    wrapGAppsHook3
@@ -94,7 +96,8 @@ python3.pkgs.buildPythonApplication (finalAttrs: {
    );

  postInstall = ''
    install -Dvm444 $src/trackma/data/icon.png $out/share/pixmaps/trackma.png
    mkdir -p $out/share/icons/hicolor/64x64/apps
    magick $src/trackma/data/icon.png -resize 64x64! $out/share/icons/hicolor/64x64/apps/trackma.png
  '';

  doCheck = false;