c64-debugger: fix build

This commit is contained in:
wxt 2024-12-29 16:13:08 +08:00
parent 8d57281b97
commit cb5df10da1
No known key found for this signature in database
GPG key ID: 8281D5EE2D1825A4

View file

@ -19,7 +19,7 @@ stdenv.mkDerivation {
src = fetchgit { src = fetchgit {
url = "https://git.code.sf.net/p/c64-debugger/code"; url = "https://git.code.sf.net/p/c64-debugger/code";
rev = "f97772e3f5c8b4fa99e8ed212ed1c4cb1e2389f1"; rev = "f97772e3f5c8b4fa99e8ed212ed1c4cb1e2389f1";
sha256 = "sha256-3SR73AHQlYSEYpJLtQ/aJ1UITZGq7aA9tQKxBsn/yuc="; hash = "sha256-3SR73AHQlYSEYpJLtQ/aJ1UITZGq7aA9tQKxBsn/yuc=";
}; };
buildInputs = [ buildInputs = [
@ -85,10 +85,19 @@ stdenv.mkDerivation {
runHook postInstall runHook postInstall
''; '';
meta = with lib; { env = {
NIX_CFLAGS_COMPILE = toString [
"-Wno-error=narrowing"
"-Wno-error=implicit-function-declaration"
"-Wno-error=int-conversion"
"-Wno-error=incompatible-pointer-types"
];
};
meta = {
homepage = "https://sourceforge.net/projects/c64-debugger"; homepage = "https://sourceforge.net/projects/c64-debugger";
description = "Commodore 64, Atari XL/XE and NES code and memory debugger that works in real time"; description = "Commodore 64, Atari XL/XE and NES code and memory debugger that works in real time";
license = with licenses; [ license = with lib.licenses; [
gpl3Only # c64-debugger gpl3Only # c64-debugger
mit # MTEngine mit # MTEngine
# emulators included in c64-debugger # emulators included in c64-debugger
@ -96,7 +105,7 @@ stdenv.mkDerivation {
gpl2 # nestopiaue gpl2 # nestopiaue
]; ];
mainProgram = "c64debugger"; mainProgram = "c64debugger";
maintainers = [ maintainers.detegr ]; maintainers = [ lib.maintainers.detegr ];
platforms = platforms.linux; platforms = lib.platforms.linux;
}; };
} }