m8c: init at 1.7.8

This commit is contained in:
mrtnvgr
2024-12-04 13:06:08 +07:00
parent 74454e41a5
commit bb2a1fd9b0
+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";
};
})