git.iko.soy/typeable/nixpkgs
on master help sign in
atasm: init at 1.09
commit8d06eef6552058e9e719006371c9d27bd316012a authorAndersonTorres <torres.anderson.85@protonmail.com> dateWed 8 Sep 2021, 15:51 (5 years ago) parentae19d5c
4 files changed+96
pkgs/development/compilers/atasm/0000-file-not-found.diff+16 pkgs/development/compilers/atasm/0001-select-flags.diff+14 pkgs/development/compilers/atasm/default.nix+64 pkgs/top-level/all-packages.nix+2
pkgs/development/compilers/atasm/0000-file-not-found.diffnew file+16
@@ -0,0 +1,16 @@
1+diff -Naur atasm109-old/src/Makefile atasm109-new/src/Makefile
2+--- atasm109-old/src/Makefile 2021-09-08 09:53:25.581598063 -0300
3++++ atasm109-new/src/Makefile 2021-09-08 09:55:20.366131338 -0300
4+@@ -55,9 +55,9 @@
5+ chown root.root $(DESTDIR)/atasm || true
6+ chmod 711 $(DESTDIR)/atasm
7+ mkdir $(DOCDIR) >/dev/null 2>&1 || echo $(DOCDIR) already exists
8+- cp ../atasm.txt $(DOCDIR)
9+- chown root.root $(DOCDIR)/atasm.txt || true
10+- chmod 644 $(DOCDIR)/atasm.txt
11++ # cp ../atasm.txt $(DOCDIR)
12++ # chown root.root $(DOCDIR)/atasm.txt || true
13++ # chmod 644 $(DOCDIR)/atasm.txt
14+ sed -e 's,%%DOCDIR%%,$(DOCDIR),g' < atasm.1.in > atasm.1
15+ cp atasm.1 $(MANDIR)
16+ chown root.root $(MANDIR)/atasm.1 || true
pkgs/development/compilers/atasm/0001-select-flags.diffnew file+14
@@ -0,0 +1,14 @@
1+diff -Naur atasm109-old/src/Makefile atasm109-new/src/Makefile
2+--- atasm109-old/src/Makefile 2021-09-08 09:53:25.581598063 -0300
3++++ atasm109-new/src/Makefile 2021-09-08 09:55:20.366131338 -0300
4+@@ -16,8 +16,8 @@
5+ UNIX = -DUNIX
6+
7+ # Compiler flags, if you are using egcs, pgcs, or gcc >2.8.1 use:
8+-#CFLAGS = -g -Wall $(USEZ) $(DOS) $(UNIX) $(ARCH)
9+-CFLAGS = -Wall $(USEZ) $(DOS) $(UNIX) -O3 -fomit-frame-pointer $(ARCH)
10++CFLAGS = -g -Wall $(USEZ) $(DOS) $(UNIX) $(ARCH)
11++#CFLAGS = -Wall $(USEZ) $(DOS) $(UNIX) -O3 -fomit-frame-pointer $(ARCH)
12+
13+ L = $(ZLIB)
14+ CC = gcc
pkgs/development/compilers/atasm/default.nixnew file+64
@@ -0,0 +1,64 @@
1+{ lib
2+, stdenv
3+, fetchurl
4+, unzip
5+, zlib
6+}:
7+
8+stdenv.mkDerivation rec {
9+ pname = "atasm";
10+ version = "1.09";
11+
12+ src = fetchurl {
13+ url = "https://atari.miribilist.com/${pname}/${pname}${builtins.replaceStrings ["."] [""] version}.zip";
14+ hash = "sha256-26shhw2r30GZIPz6S1rf6dOLKRpgpLwrqCRZX3+8PvA=";
15+ };
16+
17+ patches = [
18+ # make install fails because atasm.txt was moved; report to upstream
19+ ./0000-file-not-found.diff
20+ # select flags for compilation
21+ ./0001-select-flags.diff
22+ ];
23+
24+ dontConfigure = true;
25+
26+ nativeBuildInputs = [
27+ unzip
28+ ];
29+
30+ buildInputs = [
31+ zlib
32+ ];
33+
34+ preBuild = ''
35+ makeFlagsArray+=(
36+ -C ./src
37+ CC=cc
38+ USEZ="-DZLIB_CAPABLE -I${zlib}/include"
39+ ZLIB="-L${zlib}/lib -lz"
40+ UNIX="-DUNIX"
41+ )
42+ '';
43+
44+ preInstall = ''
45+ install -d $out/share/doc/${pname} $out/man/man1
46+ installFlagsArray+=(
47+ DESTDIR=$out
48+ DOCDIR=$out/share/doc/${pname}
49+ MANDIR=$out/man/man1
50+ )
51+ '';
52+
53+ postInstall = ''
54+ mv docs/* $out/share/doc/${pname}
55+ '';
56+
57+ meta = with lib; {
58+ homepage = "https://atari.miribilist.com/atasm/";
59+ description = "A commandline 6502 assembler compatible with Mac/65";
60+ license = licenses.gpl2Plus;
61+ maintainers = with maintainers; [ AndersonTorres ];
62+ platforms = with platforms; unix;
63+ };
64+}
pkgs/top-level/all-packages.nix+2
@@ -10828,6 +10828,8 @@ with pkgs;
1082810828
1082910829 aspectj = callPackage ../development/compilers/aspectj { };
1083010830
10831+ atasm = callPackage ../development/compilers/atasm { };
10832+
1083110833 ats = callPackage ../development/compilers/ats { };
1083210834 ats2 = callPackage ../development/compilers/ats2 { };
1083310835