about summary refs log tree commit diff
path: root/pkgs/applications/emulators/retroarch/retroarch-assets.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/applications/emulators/retroarch/retroarch-assets.nix')
-rw-r--r--pkgs/applications/emulators/retroarch/retroarch-assets.nix33
1 files changed, 33 insertions, 0 deletions
diff --git a/pkgs/applications/emulators/retroarch/retroarch-assets.nix b/pkgs/applications/emulators/retroarch/retroarch-assets.nix
new file mode 100644
index 0000000000000..265b827577185
--- /dev/null
+++ b/pkgs/applications/emulators/retroarch/retroarch-assets.nix
@@ -0,0 +1,33 @@
+{ lib
+, stdenvNoCC
+, fetchFromGitHub
+}:
+
+stdenvNoCC.mkDerivation rec {
+  pname = "retroarch-assets";
+  version = "unstable-2022-10-24";
+
+  src = fetchFromGitHub {
+    owner = "libretro";
+    repo = "retroarch-assets";
+    rev = "4ec80faf1b5439d1654f407805bb66141b880826";
+    hash = "sha256-j1npVKEknq7hpFr/XfST2GNHI5KnEYjZAM0dw4tMsYk=";
+  };
+
+  makeFlags = [
+    "PREFIX=$(out)"
+    # By default install in $(PREFIX)/share/libretro/assets
+    # that is not in RetroArch's assets path
+    "INSTALLDIR=$(PREFIX)/share/retroarch/assets"
+  ];
+
+  dontBuild = true;
+
+  meta = with lib; {
+    description = "Assets needed for RetroArch";
+    homepage = "https://libretro.com";
+    license = licenses.mit;
+    maintainers = with maintainers; teams.libretro.members ++ [ ];
+    platforms = platforms.all;
+  };
+}