1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-22 13:41:26 +00:00
nixpkgs/pkgs/development/lisp-modules/quicklisp-to-nix/nix-package.emb
Brad Jensen f0c8027ae3 Overhaul quicklisp-to-nix
1. Detect (and automatically handle) parasitic systems.
2. Each nix package has only one asd, and (almost) every parasitic
   package inside it builds.
3. Ensure that parasitic systems are compiled.
4. Remove unnecessary testnames lisp override mechanism (the
   testnae/testSystem is replaced by parasites/buildSystems).
5. Parasitic systems (if included in the system closure) become
   aliases to their host package.
6. Support caching fasl files in a known directory (for faster
   re-generation after modifying quicklisp-to-nix-system-info).
7. Eliminate unnecessary overrides.  We're going to determine ALL
   lisp dependencies correctly.
8. Don't try to "build" lisp packages with make.  lispPackages should
   be about bringing in a lisp library.
9. Eliminate the hand-maintained list of aliases.  Parasites should
   become aliases.  Everything else should be a real package.
2017-08-31 20:10:18 -07:00

23 lines
566 B
Plaintext

args @ { fetchurl, ... }:
rec {
baseName = ''<% @var filename %>'';
version = ''<% @var version %>'';<% @if parasites %>
parasites = [<% (dolist (p (getf env :parasites)) (format t " \"~A\"" p)) %> ];<% @endif %>
description = ''<% @var description %>'';
deps = [ <% @loop deps %>args."<% @var filename %>" <% @endloop %>];
src = fetchurl {
url = ''<% @var url %>'';
sha256 = ''<% @var sha256 %>'';
};
packageName = "<% @var name %>";
asdFilesToKeep = ["<% @var name %>.asd"];
overrides = x: x;
}
/* <%= cl-emb-intern::topenv %> */