nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{stdenv, fetchurl, texinfo, texLive, perl}:
2let
3 s = # Generated upstream information
4 rec {
5 baseName="asdf";
6 version="2.26";
7 name="${baseName}-${version}";
8 url="http://common-lisp.net/project/asdf/archives/asdf-${version}.tar.gz";
9 sha256="1qzp444rgnqf1cz9v48nh0yvz7wjq9fjdpimifsfcjswaqi2xrdn";
10 };
11 buildInputs = [
12 texinfo texLive perl
13 ];
14in
15stdenv.mkDerivation {
16 inherit (s) name version;
17 inherit buildInputs;
18 src = fetchurl {
19 inherit (s) url sha256;
20 };
21
22 buildPhase = ''
23 make asdf.lisp
24 mkdir build
25 ln -s ../asdf.lisp build
26 '';
27 installPhase = ''
28 mkdir -p "$out"/lib/common-lisp/asdf/
29 mkdir -p "$out"/share/doc/asdf/
30 cp -r ./* "$out"/lib/common-lisp/asdf/
31 cp -r doc/* "$out"/share/doc/asdf/
32 ln -s "$out"/lib/common-lisp/{asdf/uiop,uiop}
33 '';
34 meta = {
35 inherit (s) version;
36 description = ''Standard software-system definition library for Common Lisp'';
37 license = stdenv.lib.licenses.mit ;
38 maintainers = [stdenv.lib.maintainers.raskin];
39 platforms = stdenv.lib.platforms.linux;
40 };
41}