Unverified Commit 189555b8 authored by Donovan Glover's avatar Donovan Glover Committed by GitHub
Browse files

ludusavi: 0.25.0 -> 0.27.0 (#358080)

parents 8d8cd44c 61f4f172
Loading
Loading
Loading
Loading
+23 −8
Original line number Diff line number Diff line
@@ -19,20 +19,27 @@
, wayland
, zenity
, libsForQt5
, cairo
, pango
, atkmm
, gdk-pixbuf
, dbus-glib
, gtk3
, glib
}:

rustPlatform.buildRustPackage rec {
  pname = "ludusavi";
  version = "0.25.0";
  version = "0.27.0";

  src = fetchFromGitHub {
    owner = "mtkennerly";
    repo = "ludusavi";
    rev = "v${version}";
    hash = "sha256-GjecssOc5xVni73uNRQ/GaZmIdM9r09I8GpPK+jwoAY=";
    hash = "sha256-YMTM0UKDGUiFmwmQXVJe5hccu4A8dhm0OFxTKLUb1jo=";
  };

  cargoHash = "sha256-9QaQjb7bdDl4NWKbV+dfu9BgFU8NO3CZEvKSXujMUtI=";
  cargoHash = "sha256-1IqjoprKwupwJwXyGtMwB7guG3j98ayWmmigY0fY12s=";

  nativeBuildInputs = [
    cmake
@@ -48,16 +55,21 @@ rustPlatform.buildRustPackage rec {
    libXcursor
    libXrandr
    libXi
    cairo
    pango
    atkmm
    gdk-pixbuf
    gtk3
  ];

  postInstall = ''
    install -Dm644 assets/com.github.mtkennerly.ludusavi.metainfo.xml -t \
    install -Dm644 assets/linux/com.mtkennerly.ludusavi.metainfo.xml -t \
      "$out/share/metainfo/"
    install -Dm644 assets/icon.png \
      "$out/share/icons/hicolor/64x64/apps/ludusavi.png"
      "$out/share/icons/hicolor/64x64/apps/com.mtkennerly.ludusavi.png"
    install -Dm644 assets/icon.svg \
      "$out/share/icons/hicolor/scalable/apps/ludusavi.svg"
    install -Dm644 "assets/ludusavi.desktop" -t "$out/share/applications/"
      "$out/share/icons/hicolor/scalable/apps/com.mtkennerly.ludusavi.svg"
    install -Dm644 "assets/linux/com.mtkennerly.ludusavi.desktop" -t "$out/share/applications/"
    install -Dm644 assets/MaterialIcons-Regular.ttf -t "$out/share/fonts/TTF/"
    install -Dm644 LICENSE -t "$out/share/licenses/ludusavi/"
  '' + lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
@@ -81,6 +93,9 @@ rustPlatform.buildRustPackage rec {
        libxkbcommon
        vulkan-loader
        wayland
        gtk3
        dbus-glib
        glib
      ];
    in
    ''
@@ -94,7 +109,7 @@ rustPlatform.buildRustPackage rec {
    homepage = "https://github.com/mtkennerly/ludusavi";
    changelog = "https://github.com/mtkennerly/ludusavi/blob/v${version}/CHANGELOG.md";
    license = licenses.mit;
    maintainers = with maintainers; [ pasqui23 ];
    maintainers = with maintainers; [ pasqui23 megheaiulian];
    mainProgram = "ludusavi";
  };
}