m8c: init at 1.7.8 (#361671)

This commit is contained in:
Aleksana
2024-12-05 19:32:15 +08:00
committed by GitHub
+40
View File
@@ -0,0 +1,40 @@
{
stdenv,
fetchFromGitHub,
lib,
pkg-config,
SDL2,
libserialport,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "m8c";
version = "1.7.8";
src = fetchFromGitHub {
owner = "laamaa";
repo = "m8c";
rev = "v${finalAttrs.version}";
hash = "sha256-kUXNtAO8yUBeBg1NEwk+3jB7lL8ITm5hmXiemTUWbGc=";
};
makeFlags = [ "CC=${stdenv.cc.targetPrefix}cc" ];
installFlags = [ "PREFIX=$(out)" ];
nativeBuildInputs = [ pkg-config ];
buildInputs = [
SDL2
libserialport
];
meta = {
description = "Cross-platform M8 tracker headless client";
homepage = "https://github.com/laamaa/m8c";
license = lib.licenses.mit;
platforms = lib.platforms.all;
maintainers = with lib.maintainers; [ mrtnvgr ];
mainProgram = "m8c";
};
})