about summary refs log tree commit diff
path: root/pkgs/applications/emulators/hatari
diff options
context:
space:
mode:
authorAndersonTorres <torres.anderson.85@protonmail.com>2022-02-15 23:28:16 -0300
committerAndersonTorres <torres.anderson.85@protonmail.com>2022-02-16 01:38:20 -0300
commit8d65e832f0a18f60e2040940c80d96373ac8b88c (patch)
tree3d6ade66b2a81403e3852b80b9e7c660699b6ed6 /pkgs/applications/emulators/hatari
parent19574af0af3ffaf7c9e359744ed32556f34536bd (diff)
Move misc/emulators to applications/emulators - part 1
Emulators form a class by themselves. So, they should be moved to applications/.
Diffstat (limited to 'pkgs/applications/emulators/hatari')
-rw-r--r--pkgs/applications/emulators/hatari/default.nix25
1 files changed, 25 insertions, 0 deletions
diff --git a/pkgs/applications/emulators/hatari/default.nix b/pkgs/applications/emulators/hatari/default.nix
new file mode 100644
index 0000000000000..de98278b83251
--- /dev/null
+++ b/pkgs/applications/emulators/hatari/default.nix
@@ -0,0 +1,25 @@
+{ lib, stdenv, fetchurl, zlib, SDL, cmake }:
+
+stdenv.mkDerivation rec {
+  pname = "hatari";
+  version = "2.3.1";
+
+  src = fetchurl {
+    url = "https://download.tuxfamily.org/hatari/${version}/${pname}-${version}.tar.bz2";
+    sha256 = "sha256-RKL2LKmV442eCHSAaVbwucPMhOqJ4BaaY4SbY807ZL0=";
+  };
+
+  # For pthread_cancel
+  cmakeFlags = [ "-DCMAKE_EXE_LINKER_FLAGS=-lgcc_s" ];
+
+  nativeBuildInputs = [ cmake ];
+  buildInputs = [ zlib SDL ];
+
+  meta = {
+    homepage = "http://hatari.tuxfamily.org/";
+    description = "Atari ST/STE/TT/Falcon emulator";
+    license = lib.licenses.gpl2Plus;
+    platforms = lib.platforms.linux;
+    maintainers = with lib.maintainers; [ ];
+  };
+}