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
49 lines
953 B
Nix
49 lines
953 B
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitHub,
|
|
libX11,
|
|
nix-update-script,
|
|
SDL,
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "matrix-brandy";
|
|
version = "1.23.5";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "stardot";
|
|
repo = "MatrixBrandy";
|
|
rev = "V${version}";
|
|
hash = "sha256-sMgYgV4/vV1x5xSICXRpW6K8uCdVlJrS7iEg6XzQRo8=";
|
|
};
|
|
|
|
patches = lib.optionals stdenv.hostPlatform.isDarwin [ ./no-lrt.patch ];
|
|
|
|
makeFlags = lib.optionals stdenv.hostPlatform.isDarwin [
|
|
"CC=cc"
|
|
"LD=clang"
|
|
];
|
|
|
|
buildInputs = [
|
|
libX11
|
|
SDL
|
|
];
|
|
|
|
installPhase = ''
|
|
mkdir -p $out/bin
|
|
cp brandy $out/bin
|
|
'';
|
|
|
|
passthru.updateScript = nix-update-script { };
|
|
|
|
meta = with lib; {
|
|
homepage = "https://brandy.matrixnetwork.co.uk/";
|
|
description = "Matrix Brandy BASIC VI for Linux, Windows, MacOSX";
|
|
mainProgram = "brandy";
|
|
license = licenses.gpl2Plus;
|
|
platforms = platforms.unix;
|
|
maintainers = with maintainers; [ fiq ];
|
|
};
|
|
}
|