Unverified Commit 063943c2 authored by Ivar Larsson's avatar Ivar Larsson
Browse files

emulationstation-de: 2.2.1 -> 3.0.2

parent 33389fcd
Loading
Loading
Loading
Loading
+25 −8
Original line number Diff line number Diff line
@@ -15,13 +15,13 @@
  SDL2
}:

stdenv.mkDerivation {
stdenv.mkDerivation (finalAttrs: {
  pname = "emulationstation-de";
  version = "2.2.1";
  version = "3.0.2";

  src = fetchzip {
    url = "https://gitlab.com/es-de/emulationstation-de/-/archive/v2.2.1/emulationstation-de-v2.2.1.tar.gz";
    hash = "sha256:1kp9p3fndnx4mapgfvy742zwisyf0y5k57xkqkis0kxyibx0z8i6";
    url = "https://gitlab.com/es-de/emulationstation-de/-/archive/v${finalAttrs.version}/emulationstation-de-v${finalAttrs.version}.tar.gz";
    hash = "sha256:RGlXFybbXYx66Hpjp2N3ovK4T5VyS4w0DWRGNvbwugs=";
  };

  patches = [ ./001-add-nixpkgs-retroarch-cores.patch ];
@@ -44,8 +44,25 @@ stdenv.mkDerivation {
  ];

  installPhase = ''
    install -D ../emulationstation $out/bin/emulationstation
    cp -r ../resources/ $out/bin/resources/
    # Binary
    install -D ../es-de $out/bin/es-de

    # Resources
    mkdir -p $out/share/es-de/
    cp -r ../resources/ $out/share/es-de/resources/

    # Desktop file
    mkdir -p $out/share/applications
    cp ../es-app/assets/org.es_de.frontend.desktop $out/share/applications/

    # Icon
    mkdir -p $out/share/icons/hicolor/scalable/apps
    cp ../es-app/assets/org.es_de.frontend.svg $out/share/icons/hicolor/scalable/apps/
  '';

  postInstall = ''
    substituteInPlace $out/share/applications/org.es_de.frontend.desktop \
      --replace "Exec=es-de" "Exec=$out/bin/es-de"
  '';

  meta = {
@@ -54,6 +71,6 @@ stdenv.mkDerivation {
    maintainers = with lib.maintainers; [ ivarmedi ];
    license = lib.licenses.mit;
    platforms = lib.platforms.linux;
    mainProgram = "emulationstation";
    mainProgram = "es-de";
  };
}
})