1{
2 lib,
3 stdenv,
4 fetchurl,
5 fetchpatch,
6 texinfo,
7 texLive,
8 perl,
9}:
10
11stdenv.mkDerivation rec {
12 pname = "asdf";
13 version = "3.3.6";
14
15 src = fetchurl {
16 url = "http://common-lisp.net/project/asdf/archives/asdf-${version}.tar.gz";
17 sha256 = "sha256-NkjvNlLqJnBAfOxC9ECTtmuS5K+0v5ZXOw2xt8l7vgk=";
18 };
19
20 patches = [
21 # Clasp bytecode support
22 (fetchpatch {
23 url = "https://github.com/clasp-developers/asdf/compare/fe6e3ab741c71ecebc8503e20637d4c940326421..615771b3d0ee6ebb158134769e88ba421c2ea7d1.diff";
24 hash = "sha256-jrv/vH4uxLVvaCK4UicNzIePQ12lscA0auwgTMb4QwI=";
25 })
26 ];
27
28 strictDeps = true;
29 nativeBuildInputs = [
30 texinfo
31 texLive
32 perl
33 ];
34
35 buildPhase = ''
36 make build/asdf.lisp
37 make -C doc asdf.info asdf.html
38 '';
39 installPhase = ''
40 mkdir -p "$out"/lib/common-lisp/asdf/
41 mkdir -p "$out"/share/doc/asdf/
42 cp -r ./* "$out"/lib/common-lisp/asdf/
43 cp -r doc/* "$out"/share/doc/asdf/
44 ln -s "$out"/lib/common-lisp/{asdf/uiop,uiop}
45 '';
46
47 meta = with lib; {
48 description = "Standard software-system definition library for Common Lisp";
49 homepage = "https://asdf.common-lisp.dev/";
50 license = licenses.mit;
51 maintainers = with maintainers; [ raskin ];
52 platforms = platforms.unix;
53 };
54}