as31: fix build with gcc14, fix src and meta.homepage, modernize (#395853)
This commit is contained in:
@@ -2,22 +2,29 @@
|
||||
lib,
|
||||
stdenv,
|
||||
fetchurl,
|
||||
fetchpatch,
|
||||
bison,
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
pname = "as31";
|
||||
version = "2.3.1";
|
||||
|
||||
src = fetchurl {
|
||||
url = "http://wiki.erazor-zone.de/_media/wiki:projects:linux:as31:${pname}-${version}.tar.gz";
|
||||
name = "${pname}-${version}.tar.gz";
|
||||
url = "mirror://debian/pool/main/a/as31/${finalAttrs.pname}_${finalAttrs.version}.orig.tar.gz";
|
||||
name = "${finalAttrs.pname}-${finalAttrs.version}.tar.gz";
|
||||
hash = "sha256-zSEyWHFon5nyq717Mpmdv1XZ5Hz0e8ZABqsP8M83c1U=";
|
||||
};
|
||||
|
||||
patches = [
|
||||
# Check return value of getline in run.c
|
||||
./0000-getline-break.patch
|
||||
|
||||
# fix build with gcc14
|
||||
(fetchpatch {
|
||||
url = "https://salsa.debian.org/debian/as31/-/raw/76735fbf1fb00ce70ffd98385137908b7bd9bd5c/debian/patches/update_sizebuf_types.patch";
|
||||
hash = "sha256-ERrPdY0afKwXmdSLoWmWR55nKfvmieGlz+nhwFWRnrM=";
|
||||
})
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
@@ -34,12 +41,12 @@ stdenv.mkDerivation rec {
|
||||
bison
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "http://wiki.erazor-zone.de/wiki:projects:linux:as31";
|
||||
meta = {
|
||||
homepage = "https://www.pjrc.com/tech/8051/tools/as31-doc.html";
|
||||
description = "8031/8051 assembler";
|
||||
mainProgram = "as31";
|
||||
license = licenses.gpl2Plus;
|
||||
maintainers = with maintainers; [ ];
|
||||
platforms = platforms.unix;
|
||||
license = lib.licenses.gpl2Plus;
|
||||
maintainers = [ ];
|
||||
platforms = lib.platforms.unix;
|
||||
};
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user