nixpkgs/pkgs/applications/audio/pt2-clone/default.nix

38 lines
853 B
Nix
Raw Normal View History

{ lib, stdenv
2020-02-20 08:16:24 +00:00
, fetchFromGitHub
, cmake
2020-07-29 17:00:33 +00:00
, nixosTests
, alsa-lib
2020-02-20 08:16:24 +00:00
, SDL2
}:
stdenv.mkDerivation rec {
pname = "pt2-clone";
2021-03-15 17:17:57 +00:00
version = "1.29";
2020-02-20 08:16:24 +00:00
src = fetchFromGitHub {
owner = "8bitbubsy";
repo = "pt2-clone";
rev = "v${version}";
2021-03-15 17:17:57 +00:00
sha256 = "sha256-xnw4UL30nUv/Ru6x/7d05gC0X9nREMdXO9QWBjVoIvo=";
2020-02-20 08:16:24 +00:00
};
nativeBuildInputs = [ cmake ];
buildInputs = [ SDL2 ] ++ lib.optional stdenv.isLinux alsa-lib;
2020-02-20 08:16:24 +00:00
2020-07-29 17:00:33 +00:00
passthru.tests = {
pt2-clone-opens = nixosTests.pt2-clone;
};
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 ];
# From HOW-TO-COMPILE.txt:
# > This code is NOT big-endian compatible
platforms = platforms.littleEndian;
2020-02-20 08:16:24 +00:00
};
}