2021-01-15 22:18:51 +00:00
|
|
|
{ lib, stdenv
|
2020-04-24 23:36:52 +00:00
|
|
|
, fetchFromGitHub
|
|
|
|
, cmake
|
2020-08-20 17:08:02 +00:00
|
|
|
, nixosTests
|
2021-06-28 23:13:55 +00:00
|
|
|
, alsa-lib
|
2020-04-24 23:36:52 +00:00
|
|
|
, SDL2
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "pt2-clone";
|
2021-12-06 16:07:01 +00:00
|
|
|
version = "1.37";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "8bitbubsy";
|
|
|
|
repo = "pt2-clone";
|
|
|
|
rev = "v${version}";
|
2021-12-06 16:07:01 +00:00
|
|
|
sha256 = "sha256-r9H+qF542j2qjmOEjJLAtnMU7SkJBJB8nH39zhkZu9M=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake ];
|
2021-06-28 23:13:55 +00:00
|
|
|
buildInputs = [ SDL2 ] ++ lib.optional stdenv.isLinux alsa-lib;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2020-08-20 17:08:02 +00:00
|
|
|
passthru.tests = {
|
|
|
|
pt2-clone-opens = nixosTests.pt2-clone;
|
|
|
|
};
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "A highly accurate clone of the classic ProTracker 2.3D software for Amiga";
|
|
|
|
homepage = "https://16-bits.org/pt2.php";
|
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = with maintainers; [ fgaz ];
|
2020-11-30 08:33:03 +00:00
|
|
|
# From HOW-TO-COMPILE.txt:
|
|
|
|
# > This code is NOT big-endian compatible
|
|
|
|
platforms = platforms.littleEndian;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|
|
|
|
|