nixpkgs/pkgs/development/lisp-modules/quicklisp-to-nix/nix-package.emb
2017-03-30 22:55:26 +02:00

22 lines
617 B
Plaintext

args @ { fetchurl, ... }:
rec {
baseName = ''<% @var filename %>'';
version = ''<% @var version %>'';
description = ''<% @var description %>'';
deps = [ <% @loop deps %>args."<% @var name %>" <% @endloop %>];
src = fetchurl {
url = ''<% @var url %>'';
sha256 = ''<% @var sha256 %>'';
};
overrides = x: {
postInstall = ''
echo "$CL_SOURCE_REGISTRY"
NIX_LISP_PRELAUNCH_HOOK='nix_lisp_run_single_form "(asdf:load-system :<% @ifnotempty testname %><% @var testname %><% @else %><% @var name %><% @endif %>)"' "$out/bin/<% @var filename %>-lisp-launcher.sh" ""
'';
};
}