push sheeet
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

This commit is contained in:
Dark Steveneq
2025-10-09 14:15:47 +02:00
commit 646b892680
49168 changed files with 5897842 additions and 0 deletions

View File

@@ -0,0 +1,16 @@
diff -Naur atasm109-old/src/Makefile atasm109-new/src/Makefile
--- atasm109-old/src/Makefile 2021-09-08 09:53:25.581598063 -0300
+++ atasm109-new/src/Makefile 2021-09-08 09:55:20.366131338 -0300
@@ -55,9 +55,9 @@
chown root.root $(DESTDIR)/atasm || true
chmod 711 $(DESTDIR)/atasm
mkdir $(DOCDIR) >/dev/null 2>&1 || echo $(DOCDIR) already exists
- cp ../atasm.txt $(DOCDIR)
- chown root.root $(DOCDIR)/atasm.txt || true
- chmod 644 $(DOCDIR)/atasm.txt
+ # cp ../atasm.txt $(DOCDIR)
+ # chown root.root $(DOCDIR)/atasm.txt || true
+ # chmod 644 $(DOCDIR)/atasm.txt
sed -e 's,%%DOCDIR%%,$(DOCDIR),g' < atasm.1.in > atasm.1
cp atasm.1 $(MANDIR)
chown root.root $(MANDIR)/atasm.1 || true

View File

@@ -0,0 +1,14 @@
diff -Naur atasm109-old/src/Makefile atasm109-new/src/Makefile
--- atasm109-old/src/Makefile 2021-09-08 09:53:25.581598063 -0300
+++ atasm109-new/src/Makefile 2021-09-08 09:55:20.366131338 -0300
@@ -16,8 +16,8 @@
UNIX = -DUNIX
# Compiler flags, if you are using egcs, pgcs, or gcc >2.8.1 use:
-#CFLAGS = -g -Wall $(USEZ) $(DOS) $(UNIX) $(ARCH)
-CFLAGS = -Wall $(USEZ) $(DOS) $(UNIX) -O3 -fomit-frame-pointer $(ARCH)
+CFLAGS = -g -Wall $(USEZ) $(DOS) $(UNIX) $(ARCH)
+#CFLAGS = -Wall $(USEZ) $(DOS) $(UNIX) -O3 -fomit-frame-pointer $(ARCH)
L = $(ZLIB)
CC = gcc

View File

@@ -0,0 +1,66 @@
{
lib,
stdenv,
fetchFromGitHub,
zlib,
}:
stdenv.mkDerivation rec {
pname = "atasm";
version = "1.29";
src = fetchFromGitHub {
owner = "CycoPH";
repo = "atasm";
rev = "V${version}";
hash = "sha256-TGSmlNz8kxsHlIhq4ZNDBU8uhpsZGK0oEp2qD4SndE8=";
};
makefile = "Makefile";
patches = [
# make install fails because atasm.txt was moved; report to upstream
./0000-file-not-found.diff
# select flags for compilation
./0001-select-flags.diff
];
dontConfigure = true;
buildInputs = [
zlib
];
preBuild = ''
makeFlagsArray+=(
-C ./src
CC=cc
USEZ="-DZLIB_CAPABLE -I${zlib}/include"
ZLIB="-L${zlib}/lib -lz"
UNIX="-DUNIX"
)
'';
preInstall = ''
mkdir -p $out/bin/
install -d $out/share/doc/${pname} $out/man/man1
installFlagsArray+=(
DESTDIR=$out/bin/
DOCDIR=$out/share/doc/${pname}
MANDIR=$out/man/man1
)
'';
postInstall = ''
mv docs/* $out/share/doc/${pname}
'';
meta = {
homepage = "https://github.com/CycoPH/atasm";
description = "Commandline 6502 assembler compatible with Mac/65";
license = lib.licenses.gpl2Plus;
changelog = "https://github.com/CycoPH/atasm/releases/tag/V${version}";
maintainers = [ ];
platforms = with lib.platforms; unix;
};
}