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