tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
asl: init at 142-bld211
AndersonTorres
4 years ago
2b6ba95a
b5626d1c
+92
3 changed files
expand all
collapse all
unified
split
pkgs
development
compilers
asl
Makefile-nixos.def
default.nix
top-level
all-packages.nix
+31
pkgs/development/compilers/asl/Makefile-nixos.def
···
1
1
+
# -------------------------------------------------------------------------
2
2
+
# choose your compiler (must be ANSI-compliant!) and linker command, plus
3
3
+
# any additionally needed flags
4
4
+
5
5
+
OBJDIR = .objdir/
6
6
+
CC = cc
7
7
+
CFLAGS = -g -fomit-frame-pointer -Wall
8
8
+
HOST_OBJEXTENSION = .o
9
9
+
LD = $(CC)
10
10
+
LDFLAGS =
11
11
+
HOST_EXEXTENSION =
12
12
+
13
13
+
# no cross build
14
14
+
15
15
+
TARG_OBJDIR = $(OBJDIR)
16
16
+
TARG_CC = $(CC)
17
17
+
TARG_CFLAGS = $(CFLAGS)
18
18
+
TARG_OBJEXTENSION = $(HOST_OBJEXTENSION)
19
19
+
TARG_LD = $(LD)
20
20
+
TARG_LDFLAGS = $(LDFLAGS)
21
21
+
TARG_EXEXTENSION = $(HOST_EXEXTENSION)
22
22
+
23
23
+
# -------------------------------------------------------------------------
24
24
+
# directories where binaries, includes, and manpages should go during
25
25
+
# installation
26
26
+
27
27
+
BINDIR = @bindir@
28
28
+
INCDIR = @incdir@
29
29
+
MANDIR = @mandir@
30
30
+
LIBDIR = @libdir@
31
31
+
DOCDIR = @docdir@
+57
pkgs/development/compilers/asl/default.nix
···
1
1
+
{ lib
2
2
+
, stdenv
3
3
+
, fetchzip
4
4
+
, buildDocs? false, tex
5
5
+
}:
6
6
+
7
7
+
stdenv.mkDerivation rec {
8
8
+
pname = "asl";
9
9
+
version = "142-bld211";
10
10
+
11
11
+
src = fetchzip {
12
12
+
name = "${pname}-${version}";
13
13
+
url = "http://john.ccac.rwth-aachen.de:8000/ftp/as/source/c_version/asl-current-${version}.tar.bz2";
14
14
+
hash = "sha256-Sbm16JX7kC/7Ws7YgNBUXNqOCl6u+RXgfNjTODhCzSM=";
15
15
+
};
16
16
+
17
17
+
nativeBuildInputs = lib.optional buildDocs [ tex ];
18
18
+
19
19
+
postPatch = lib.optionalString (!buildDocs) ''
20
20
+
substituteInPlace Makefile --replace "all: binaries docs" "all: binaries"
21
21
+
'';
22
22
+
23
23
+
dontConfigure = true;
24
24
+
25
25
+
preBuild = ''
26
26
+
bindir="${placeholder "out"}/bin" \
27
27
+
docdir="${placeholder "out"}/doc/asl" \
28
28
+
incdir="${placeholder "out"}/include/asl" \
29
29
+
libdir="${placeholder "out"}/lib/asl" \
30
30
+
mandir="${placeholder "out"}/share/man" \
31
31
+
substituteAll ${./Makefile-nixos.def} Makefile.def
32
32
+
mkdir -p .objdir
33
33
+
'';
34
34
+
35
35
+
hardenedDisable = [ "all" ];
36
36
+
37
37
+
# buildTargets = [ "binaries" "docs" ];
38
38
+
39
39
+
meta = with lib; {
40
40
+
homepage = "http://john.ccac.rwth-aachen.de:8000/as/index.html";
41
41
+
description = "Portable macro cross assembler";
42
42
+
longDescription = ''
43
43
+
AS is a portable macro cross assembler for a variety of microprocessors
44
44
+
and -controllers. Though it is mainly targeted at embedded processors and
45
45
+
single-board computers, you also find CPU families in the target list that
46
46
+
are used in workstations and PCs.
47
47
+
'';
48
48
+
license = licenses.gpl2Plus;
49
49
+
maintainers = with maintainers; [ AndersonTorres ];
50
50
+
platforms = platforms.unix;
51
51
+
};
52
52
+
}
53
53
+
# TODO: multiple outputs
54
54
+
# TODO: cross-compilation support
55
55
+
# TODO: customize TeX input
56
56
+
# TODO: report upstream about `mkdir -p .objdir/`
57
57
+
# TODO: suggest upstream about building docs as an option
+4
pkgs/top-level/all-packages.nix
···
11278
11278
11279
11279
as31 = callPackage ../development/compilers/as31 { };
11280
11280
11281
11281
+
asl = callPackage ../development/compilers/asl {
11282
11282
+
tex = texlive.combined.scheme-medium;
11283
11283
+
};
11284
11284
+
11281
11285
asn1c = callPackage ../development/compilers/asn1c { };
11282
11286
11283
11287
aspectj = callPackage ../development/compilers/aspectj { };