Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
47 lines
990 B
Nix
47 lines
990 B
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitHub,
|
|
cmake,
|
|
nixosTests,
|
|
alsa-lib,
|
|
SDL2,
|
|
libiconv,
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "ft2-clone";
|
|
version = "1.99";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "8bitbubsy";
|
|
repo = "ft2-clone";
|
|
rev = "v${version}";
|
|
hash = "sha256-7FA6pd8rnobvOWHqHqJseJgUniAYhpzqmJnmqYyvpm0=";
|
|
};
|
|
|
|
nativeBuildInputs = [ cmake ];
|
|
buildInputs = [
|
|
SDL2
|
|
]
|
|
++ lib.optional stdenv.hostPlatform.isLinux alsa-lib
|
|
++ lib.optionals stdenv.hostPlatform.isDarwin [
|
|
libiconv
|
|
];
|
|
|
|
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";
|
|
};
|
|
}
|