nixpkgs/pkgs/applications/audio/ft2-clone/default.nix
Winter a19cd4ffb1 Revert "treewide: replace rev with tag"
This reverts commit 65a333600d.

This wasn't tested for correctness with something like fodwatch [0],
and should not have been (self-)merged so quickly, especially without
further review.

It also resulted in the breakage of at least one package [1] (and that's
the one we know of and was caught).

A few packages that were updated in between this commit and this revert
were not reverted back to using `rev`, but other than that, this is a
1:1 revert.

[0]: https://codeberg.org/raphaelr/fodwatch
[1]: https://github.com/NixOS/nixpkgs/pull/396904 / 758551e458
2025-04-08 02:57:25 -04:00

53 lines
1.1 KiB
Nix

{
lib,
stdenv,
fetchFromGitHub,
cmake,
nixosTests,
alsa-lib,
SDL2,
libiconv,
CoreAudio,
CoreMIDI,
CoreServices,
Cocoa,
}:
stdenv.mkDerivation rec {
pname = "ft2-clone";
version = "1.95";
src = fetchFromGitHub {
owner = "8bitbubsy";
repo = "ft2-clone";
rev = "v${version}";
hash = "sha256-Xb4LHoon56P6OmHvd7RkODrOc4MDa0+U8npypGhcyw4=";
};
nativeBuildInputs = [ cmake ];
buildInputs =
[ SDL2 ]
++ lib.optional stdenv.hostPlatform.isLinux alsa-lib
++ lib.optionals stdenv.hostPlatform.isDarwin [
libiconv
CoreAudio
CoreMIDI
CoreServices
Cocoa
];
passthru.tests = {
ft2-clone-starts = nixosTests.ft2-clone;
};
meta = with lib; {
description = "Highly accurate clone of the classic Fasttracker II software for MS-DOS";
homepage = "https://16-bits.org/ft2.php";
license = licenses.bsd3;
maintainers = with maintainers; [ fgaz ];
# From HOW-TO-COMPILE.txt:
# > This code is NOT big-endian compatible
platforms = platforms.littleEndian;
mainProgram = "ft2-clone";
};
}