about summary refs log tree commit diff
path: root/nixpkgs/pkgs/misc/emulators/hatari/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/pkgs/misc/emulators/hatari/default.nix')
-rw-r--r--nixpkgs/pkgs/misc/emulators/hatari/default.nix23
1 files changed, 23 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/misc/emulators/hatari/default.nix b/nixpkgs/pkgs/misc/emulators/hatari/default.nix
new file mode 100644
index 000000000000..287df4db01be
--- /dev/null
+++ b/nixpkgs/pkgs/misc/emulators/hatari/default.nix
@@ -0,0 +1,23 @@
+{ stdenv, fetchurl, zlib, SDL, cmake }:
+
+stdenv.mkDerivation rec {
+  name = "hatari-2.1.0";
+
+  src = fetchurl {
+    url = "https://download.tuxfamily.org/hatari/2.1.0/${name}.tar.bz2";
+    sha256 = "0909l9fq20ninf8xgv5qf0a5y64cpk5ja1rsk2iaid1dx5h98agb";
+  };
+
+  # For pthread_cancel
+  cmakeFlags = "-DCMAKE_EXE_LINKER_FLAGS=-lgcc_s";
+
+  buildInputs = [ zlib SDL cmake ];
+
+  meta = {
+    homepage = http://hatari.tuxfamily.org/;
+    description = "Atari ST/STE/TT/Falcon emulator";
+    license = stdenv.lib.licenses.gpl2Plus;
+    platforms = stdenv.lib.platforms.linux;
+    maintainers = with stdenv.lib.maintainers; [ fuuzetsu ];
+  };
+}