2017-03-26 04:15:42 +02:00
|
|
|
args @ { fetchurl, ... }:
|
|
|
|
rec {
|
2017-03-30 12:15:08 +02:00
|
|
|
baseName = ''<% @var filename %>'';
|
2017-04-01 08:08:02 +02:00
|
|
|
version = ''<% @var version %>'';<% @if testname %>
|
|
|
|
|
|
|
|
testSystems = ["<% @var testname %>"];<% @endif %>
|
2017-03-26 04:15:42 +02:00
|
|
|
|
|
|
|
description = ''<% @var description %>'';
|
|
|
|
|
|
|
|
deps = [ <% @loop deps %>args."<% @var name %>" <% @endloop %>];
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = ''<% @var url %>'';
|
|
|
|
sha256 = ''<% @var sha256 %>'';
|
|
|
|
};
|
2017-03-30 22:54:19 +02:00
|
|
|
|
|
|
|
overrides = x: {
|
2017-04-01 08:08:02 +02:00
|
|
|
postInstall = ''
|
|
|
|
find "$out/lib/common-lisp/" -name '*.asd' | grep -iv '/<% @var name %>[.]asd${"$"}' |
|
|
|
|
while read f; do
|
|
|
|
CL_SOURCE_REGISTRY= \
|
|
|
|
NIX_LISP_PRELAUNCH_HOOK="nix_lisp_run_single_form '(asdf:load-system :$(basename "$f" .asd))'" \
|
|
|
|
"$out"/bin/*-lisp-launcher.sh ||
|
|
|
|
mv "$f"{,.sibling}; done || true
|
|
|
|
'';
|
2017-03-30 22:54:19 +02:00
|
|
|
};
|
2017-03-26 04:15:42 +02:00
|
|
|
}
|
2017-04-01 08:08:02 +02:00
|
|
|
/* <%= cl-emb-intern::topenv %> */
|