atasm: 1.09 -> 1.23, move to an active fork

It also fixes the build to have the binary and not only
the doc/man page.
This commit is contained in:
Thomas Gerbet 2024-03-23 16:18:40 +01:00
parent 20bc93ca7b
commit 772278e4b8

View file

@ -1,19 +1,22 @@
{ lib { lib
, stdenv , stdenv
, fetchurl , fetchFromGitHub
, unzip
, zlib , zlib
}: }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "atasm"; pname = "atasm";
version = "1.09"; version = "1.23";
src = fetchurl { src = fetchFromGitHub {
url = "https://atari.miribilist.com/${pname}/${pname}${builtins.replaceStrings ["."] [""] version}.zip"; owner = "CycoPH";
hash = "sha256-26shhw2r30GZIPz6S1rf6dOLKRpgpLwrqCRZX3+8PvA="; repo = "atasm";
rev = "V${version}";
hash = "sha256-U1HNYTiXO6WZEQJl2icY0ZEVy82CsL1mKR7Xgj9OZ14=";
}; };
makefile = "Makefile";
patches = [ patches = [
# make install fails because atasm.txt was moved; report to upstream # make install fails because atasm.txt was moved; report to upstream
./0000-file-not-found.diff ./0000-file-not-found.diff
@ -23,10 +26,6 @@ stdenv.mkDerivation rec {
dontConfigure = true; dontConfigure = true;
nativeBuildInputs = [
unzip
];
buildInputs = [ buildInputs = [
zlib zlib
]; ];
@ -42,9 +41,10 @@ stdenv.mkDerivation rec {
''; '';
preInstall = '' preInstall = ''
mkdir -p $out/bin/
install -d $out/share/doc/${pname} $out/man/man1 install -d $out/share/doc/${pname} $out/man/man1
installFlagsArray+=( installFlagsArray+=(
DESTDIR=$out DESTDIR=$out/bin/
DOCDIR=$out/share/doc/${pname} DOCDIR=$out/share/doc/${pname}
MANDIR=$out/man/man1 MANDIR=$out/man/man1
) )
@ -55,9 +55,10 @@ stdenv.mkDerivation rec {
''; '';
meta = with lib; { meta = with lib; {
homepage = "https://atari.miribilist.com/atasm/"; homepage = "https://github.com/CycoPH/atasm";
description = "A commandline 6502 assembler compatible with Mac/65"; description = "A commandline 6502 assembler compatible with Mac/65";
license = licenses.gpl2Plus; license = licenses.gpl2Plus;
changelog = "https://github.com/CycoPH/atasm/releases/tag/V${version}";
maintainers = with maintainers; [ AndersonTorres ]; maintainers = with maintainers; [ AndersonTorres ];
platforms = with platforms; unix; platforms = with platforms; unix;
}; };