2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv
|
2020-02-20 08:16:24 +00:00
|
|
|
, fetchFromGitHub
|
|
|
|
, cmake
|
2020-07-29 18:00:33 +01:00
|
|
|
, nixosTests
|
2020-02-20 08:16:24 +00:00
|
|
|
, alsaLib
|
|
|
|
, SDL2
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "pt2-clone";
|
2021-01-01 20:25:18 +00:00
|
|
|
version = "1.28";
|
2020-02-20 08:16:24 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "8bitbubsy";
|
|
|
|
repo = "pt2-clone";
|
|
|
|
rev = "v${version}";
|
2021-01-01 20:25:18 +00:00
|
|
|
sha256 = "1c2x43f46l7556kl9y9qign0g6ywdkh7ywkzv6c9y63n68ph20x2";
|
2020-02-20 08:16:24 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake ];
|
2021-01-15 13:21:58 +00:00
|
|
|
buildInputs = [ SDL2 ] ++ lib.optional stdenv.isLinux alsaLib;
|
2020-02-20 08:16:24 +00:00
|
|
|
|
2020-07-29 18:00:33 +01:00
|
|
|
passthru.tests = {
|
|
|
|
pt2-clone-opens = nixosTests.pt2-clone;
|
|
|
|
};
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-02-20 08:16:24 +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-10-02 12:53:35 +01:00
|
|
|
# From HOW-TO-COMPILE.txt:
|
|
|
|
# > This code is NOT big-endian compatible
|
|
|
|
platforms = platforms.littleEndian;
|
2020-02-20 08:16:24 +00:00
|
|
|
};
|
|
|
|
}
|
|
|
|
|