asl: init at 142-bld211
This commit is contained in:
parent
b5626d1c78
commit
2b6ba95a19
3 changed files with 92 additions and 0 deletions
31
pkgs/development/compilers/asl/Makefile-nixos.def
Normal file
31
pkgs/development/compilers/asl/Makefile-nixos.def
Normal file
|
@ -0,0 +1,31 @@
|
||||||
|
# -------------------------------------------------------------------------
|
||||||
|
# choose your compiler (must be ANSI-compliant!) and linker command, plus
|
||||||
|
# any additionally needed flags
|
||||||
|
|
||||||
|
OBJDIR = .objdir/
|
||||||
|
CC = cc
|
||||||
|
CFLAGS = -g -fomit-frame-pointer -Wall
|
||||||
|
HOST_OBJEXTENSION = .o
|
||||||
|
LD = $(CC)
|
||||||
|
LDFLAGS =
|
||||||
|
HOST_EXEXTENSION =
|
||||||
|
|
||||||
|
# no cross build
|
||||||
|
|
||||||
|
TARG_OBJDIR = $(OBJDIR)
|
||||||
|
TARG_CC = $(CC)
|
||||||
|
TARG_CFLAGS = $(CFLAGS)
|
||||||
|
TARG_OBJEXTENSION = $(HOST_OBJEXTENSION)
|
||||||
|
TARG_LD = $(LD)
|
||||||
|
TARG_LDFLAGS = $(LDFLAGS)
|
||||||
|
TARG_EXEXTENSION = $(HOST_EXEXTENSION)
|
||||||
|
|
||||||
|
# -------------------------------------------------------------------------
|
||||||
|
# directories where binaries, includes, and manpages should go during
|
||||||
|
# installation
|
||||||
|
|
||||||
|
BINDIR = @bindir@
|
||||||
|
INCDIR = @incdir@
|
||||||
|
MANDIR = @mandir@
|
||||||
|
LIBDIR = @libdir@
|
||||||
|
DOCDIR = @docdir@
|
57
pkgs/development/compilers/asl/default.nix
Normal file
57
pkgs/development/compilers/asl/default.nix
Normal file
|
@ -0,0 +1,57 @@
|
||||||
|
{ lib
|
||||||
|
, stdenv
|
||||||
|
, fetchzip
|
||||||
|
, buildDocs? false, tex
|
||||||
|
}:
|
||||||
|
|
||||||
|
stdenv.mkDerivation rec {
|
||||||
|
pname = "asl";
|
||||||
|
version = "142-bld211";
|
||||||
|
|
||||||
|
src = fetchzip {
|
||||||
|
name = "${pname}-${version}";
|
||||||
|
url = "http://john.ccac.rwth-aachen.de:8000/ftp/as/source/c_version/asl-current-${version}.tar.bz2";
|
||||||
|
hash = "sha256-Sbm16JX7kC/7Ws7YgNBUXNqOCl6u+RXgfNjTODhCzSM=";
|
||||||
|
};
|
||||||
|
|
||||||
|
nativeBuildInputs = lib.optional buildDocs [ tex ];
|
||||||
|
|
||||||
|
postPatch = lib.optionalString (!buildDocs) ''
|
||||||
|
substituteInPlace Makefile --replace "all: binaries docs" "all: binaries"
|
||||||
|
'';
|
||||||
|
|
||||||
|
dontConfigure = true;
|
||||||
|
|
||||||
|
preBuild = ''
|
||||||
|
bindir="${placeholder "out"}/bin" \
|
||||||
|
docdir="${placeholder "out"}/doc/asl" \
|
||||||
|
incdir="${placeholder "out"}/include/asl" \
|
||||||
|
libdir="${placeholder "out"}/lib/asl" \
|
||||||
|
mandir="${placeholder "out"}/share/man" \
|
||||||
|
substituteAll ${./Makefile-nixos.def} Makefile.def
|
||||||
|
mkdir -p .objdir
|
||||||
|
'';
|
||||||
|
|
||||||
|
hardenedDisable = [ "all" ];
|
||||||
|
|
||||||
|
# buildTargets = [ "binaries" "docs" ];
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
homepage = "http://john.ccac.rwth-aachen.de:8000/as/index.html";
|
||||||
|
description = "Portable macro cross assembler";
|
||||||
|
longDescription = ''
|
||||||
|
AS is a portable macro cross assembler for a variety of microprocessors
|
||||||
|
and -controllers. Though it is mainly targeted at embedded processors and
|
||||||
|
single-board computers, you also find CPU families in the target list that
|
||||||
|
are used in workstations and PCs.
|
||||||
|
'';
|
||||||
|
license = licenses.gpl2Plus;
|
||||||
|
maintainers = with maintainers; [ AndersonTorres ];
|
||||||
|
platforms = platforms.unix;
|
||||||
|
};
|
||||||
|
}
|
||||||
|
# TODO: multiple outputs
|
||||||
|
# TODO: cross-compilation support
|
||||||
|
# TODO: customize TeX input
|
||||||
|
# TODO: report upstream about `mkdir -p .objdir/`
|
||||||
|
# TODO: suggest upstream about building docs as an option
|
|
@ -11278,6 +11278,10 @@ with pkgs;
|
||||||
|
|
||||||
as31 = callPackage ../development/compilers/as31 { };
|
as31 = callPackage ../development/compilers/as31 { };
|
||||||
|
|
||||||
|
asl = callPackage ../development/compilers/asl {
|
||||||
|
tex = texlive.combined.scheme-medium;
|
||||||
|
};
|
||||||
|
|
||||||
asn1c = callPackage ../development/compilers/asn1c { };
|
asn1c = callPackage ../development/compilers/asn1c { };
|
||||||
|
|
||||||
aspectj = callPackage ../development/compilers/aspectj { };
|
aspectj = callPackage ../development/compilers/aspectj { };
|
||||||
|
|
Loading…
Reference in a new issue