9 stdenv.mkDerivation (finalAttrs: {
13 src = fetchFromGitHub {
16 rev = "v${finalAttrs.version}";
17 sha256 = "sha256-xlXwOxmJ5cL1ouTOnFwTvx959IDQIvJ0ZRk+G9p0HbA=";
20 nativeBuildInputs = [ cmake ];
21 buildInputs = [ SDL2 ] ++ lib.optional stdenv.isLinux alsa-lib;
24 install -Dm444 "$src/release/other/Freedesktop.org Resources/ProTracker 2 clone.desktop" \
25 -t $out/share/applications
26 install -Dm444 "$src/release/other/Freedesktop.org Resources/ProTracker 2 clone.png" \
27 -t $out/share/icons/hicolor/512x512/apps
31 pt2-clone-opens = nixosTests.pt2-clone;
35 description = "A highly accurate clone of the classic ProTracker 2.3D software for Amiga";
36 homepage = "https://16-bits.org/pt2.php";
37 license = licenses.bsd3;
38 maintainers = with maintainers; [ fgaz ];
39 # From HOW-TO-COMPILE.txt:
40 # > This code is NOT big-endian compatible
41 platforms = platforms.littleEndian;
42 mainProgram = "pt2-clone";