as31: modernize
- replace `rec` with `finalAttrs` - remove `with lib;` from `meta`
This commit is contained in:
@@ -6,13 +6,13 @@
|
||||
bison,
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
pname = "as31";
|
||||
version = "2.3.1";
|
||||
|
||||
src = fetchurl {
|
||||
url = "mirror://debian/pool/main/a/as31/${pname}_${version}.orig.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=";
|
||||
};
|
||||
|
||||
@@ -41,12 +41,12 @@ stdenv.mkDerivation rec {
|
||||
bison
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
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