about summary refs log tree commit diff
path: root/pkgs/by-name/li
diff options
context:
space:
mode:
authorskyrina <sorryu02@gmail.com>2024-01-18 03:10:47 +0200
committerskyrina <sorryu02@gmail.com>2024-01-18 03:10:47 +0200
commita2c743f4fea91faf825b0b98498a3772a76cd6f8 (patch)
tree3b94a94861acd5eb1a7d98be7594be104e9cdc9f /pkgs/by-name/li
parent5d693512bddfa1f5eca96d4437794008c19be042 (diff)
downloadnixlib-a2c743f4fea91faf825b0b98498a3772a76cd6f8.tar
nixlib-a2c743f4fea91faf825b0b98498a3772a76cd6f8.tar.gz
nixlib-a2c743f4fea91faf825b0b98498a3772a76cd6f8.tar.bz2
nixlib-a2c743f4fea91faf825b0b98498a3772a76cd6f8.tar.lz
nixlib-a2c743f4fea91faf825b0b98498a3772a76cd6f8.tar.xz
nixlib-a2c743f4fea91faf825b0b98498a3772a76cd6f8.tar.zst
nixlib-a2c743f4fea91faf825b0b98498a3772a76cd6f8.zip
libtas: init at 1.4.5
Diffstat (limited to 'pkgs/by-name/li')
-rw-r--r--pkgs/by-name/li/libtas/package.nix65
1 files changed, 65 insertions, 0 deletions
diff --git a/pkgs/by-name/li/libtas/package.nix b/pkgs/by-name/li/libtas/package.nix
new file mode 100644
index 000000000000..e7161894c795
--- /dev/null
+++ b/pkgs/by-name/li/libtas/package.nix
@@ -0,0 +1,65 @@
+{ lib
+, stdenv
+, fetchFromGitHub
+, autoreconfHook
+, pkg-config
+, SDL2
+, alsa-lib
+, ffmpeg
+, lua5_3
+, qt5
+, file
+, makeDesktopItem
+}:
+
+stdenv.mkDerivation (finalAttrs: {
+  pname = "libtas";
+  version = "1.4.5";
+
+  src = fetchFromGitHub {
+    owner = "clementgallet";
+    repo = "libTAS";
+    rev = "v${finalAttrs.version}";
+    hash = "sha256-n4iaJG9k+/TFfGMDCYL83Z6paxpm/gY3thP9T84GeQU=";
+  };
+
+  nativeBuildInputs = [ autoreconfHook qt5.wrapQtAppsHook pkg-config ];
+  buildInputs = [ SDL2 alsa-lib ffmpeg lua5_3 qt5.qtbase ];
+
+  configureFlags = [
+    "--enable-release-build"
+  ];
+
+  postInstall = ''
+    mkdir -p $out/lib
+    mv $out/bin/libtas*.so $out/lib/
+  '';
+
+  enableParallelBuilding = true;
+
+  postFixup = ''
+    wrapProgram $out/bin/libTAS \
+      --suffix PATH : ${lib.makeBinPath [ file ]} \
+      --set-default LIBTAS_SO_PATH $out/lib/libtas.so
+  '';
+
+  desktopItems = [
+    (makeDesktopItem {
+      name = "libTAS";
+      desktopName = "libTAS";
+      exec = "libTAS %U";
+      icon = "libTAS";
+      startupWMClass = "libTAS";
+      keywords = [ "libTAS" ];
+    })
+  ];
+
+  meta = with lib; {
+    homepage = "https://clementgallet.github.io/libTAS/";
+    description = "GNU/Linux software to give TAS tools to games";
+    license = lib.licenses.gpl3Only;
+    maintainers = with maintainers; [ skyrina ];
+    mainProgram = "libTAS";
+    platforms = [ "i686-linux" "x86_64-linux" ];
+  };
+})