diff --git a/pkgs/by-name/m8/m8c/package.nix b/pkgs/by-name/m8/m8c/package.nix index 88a39657b4e5..27455eecd011 100644 --- a/pkgs/by-name/m8/m8c/package.nix +++ b/pkgs/by-name/m8/m8c/package.nix @@ -3,32 +3,41 @@ fetchFromGitHub, lib, pkg-config, - SDL2, + sdl3, libserialport, + cmake, + copyDesktopItems, + nix-update-script, }: stdenv.mkDerivation (finalAttrs: { pname = "m8c"; - version = "1.7.10"; + version = "2.2.3"; src = fetchFromGitHub { owner = "laamaa"; repo = "m8c"; rev = "v${finalAttrs.version}"; - hash = "sha256-8QkvvTtFxQmDIqpyhZi/ORcB7YwENu+YafYtCZw0faE="; + hash = "sha256-cr5tat7JOFJ7y7AEinphgV/5T138gV6jidb87GooZ8U="; }; makeFlags = [ "CC=${stdenv.cc.targetPrefix}cc" ]; installFlags = [ "PREFIX=$(out)" ]; - nativeBuildInputs = [ pkg-config ]; + nativeBuildInputs = [ + cmake + pkg-config + copyDesktopItems + ]; buildInputs = [ - SDL2 + sdl3 libserialport ]; + passthru.updateScript = nix-update-script { }; + meta = { description = "Cross-platform M8 tracker headless client"; homepage = "https://github.com/laamaa/m8c";