2019-11-26 13:25:12 +00:00
|
|
|
{ stdenv
|
|
|
|
, fetchFromGitHub
|
2019-09-10 21:16:33 +01:00
|
|
|
, lispPackages
|
|
|
|
, sbcl
|
2019-11-26 13:25:12 +00:00
|
|
|
, callPackage
|
2019-09-10 21:16:33 +01:00
|
|
|
}:
|
|
|
|
|
2019-11-26 13:25:12 +00:00
|
|
|
let
|
|
|
|
|
|
|
|
# This is the wrapped webkitgtk platform port that we hardcode into the Lisp Core.
|
|
|
|
# See https://github.com/atlas-engineer/next/tree/master/ports#next-platform-ports
|
|
|
|
next-gtk-webkit = callPackage ./next-gtk-webkit.nix {};
|
2019-09-10 21:16:33 +01:00
|
|
|
|
2019-11-26 13:25:12 +00:00
|
|
|
in
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "next";
|
2020-02-06 04:18:59 +00:00
|
|
|
version = "1.4.0";
|
2019-09-10 21:16:33 +01:00
|
|
|
|
2019-11-26 13:25:12 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "atlas-engineer";
|
|
|
|
repo = "next";
|
|
|
|
rev = version;
|
2020-02-06 04:18:59 +00:00
|
|
|
sha256 = "1gkmr746rqqg94698a051gv79fblc8n9dq0zg04llba44adhpmjl";
|
2019-11-26 13:25:12 +00:00
|
|
|
};
|
2019-09-10 21:16:33 +01:00
|
|
|
|
2019-11-26 13:25:12 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
sbcl
|
|
|
|
] ++ (with lispPackages; [
|
|
|
|
prove-asdf
|
|
|
|
trivial-features
|
|
|
|
]);
|
2019-09-10 21:16:33 +01:00
|
|
|
|
2019-11-26 13:25:12 +00:00
|
|
|
buildInputs = with lispPackages; [
|
|
|
|
alexandria
|
|
|
|
bordeaux-threads
|
|
|
|
cl-annot
|
|
|
|
cl-ansi-text
|
|
|
|
cl-css
|
|
|
|
cl-json
|
|
|
|
cl-markup
|
|
|
|
cl-ppcre
|
|
|
|
cl-ppcre-unicode
|
|
|
|
cl-prevalence
|
|
|
|
closer-mop
|
|
|
|
dbus
|
|
|
|
dexador
|
|
|
|
ironclad
|
|
|
|
local-time
|
|
|
|
log4cl
|
|
|
|
lparallel
|
|
|
|
mk-string-metrics
|
|
|
|
parenscript
|
2020-02-06 04:18:59 +00:00
|
|
|
plump
|
2019-11-26 13:25:12 +00:00
|
|
|
quri
|
2020-02-06 04:18:59 +00:00
|
|
|
serapeum
|
2019-11-26 13:25:12 +00:00
|
|
|
sqlite
|
|
|
|
str
|
|
|
|
swank
|
|
|
|
trivia
|
|
|
|
trivial-clipboard
|
2020-02-06 04:18:59 +00:00
|
|
|
trivial-types
|
2019-11-26 13:25:12 +00:00
|
|
|
unix-opts
|
|
|
|
];
|
2019-10-10 08:39:48 +01:00
|
|
|
|
2020-01-02 20:26:38 +00:00
|
|
|
# This reference is unfortunately not detected by Nix
|
|
|
|
propagatedBuildInputs = [ next-gtk-webkit ];
|
|
|
|
|
2019-11-26 13:25:12 +00:00
|
|
|
prePatch = ''
|
|
|
|
substituteInPlace source/ports/gtk-webkit.lisp \
|
|
|
|
--replace "next-gtk-webkit" "${next-gtk-webkit}/bin/next-gtk-webkit"
|
|
|
|
'';
|
2019-09-10 21:16:33 +01:00
|
|
|
|
2019-11-26 13:25:12 +00:00
|
|
|
buildPhase = ''
|
|
|
|
common-lisp.sh --eval "(require :asdf)" \
|
|
|
|
--eval "(asdf:load-asd (truename \"next.asd\") :name \"next\")" \
|
|
|
|
--eval '(asdf:make :next)' \
|
|
|
|
--quit
|
|
|
|
'';
|
2019-09-10 21:16:33 +01:00
|
|
|
|
2019-11-26 13:25:12 +00:00
|
|
|
installPhase = ''
|
|
|
|
install -D -m0755 next $out/bin/next
|
|
|
|
'';
|
2019-09-10 21:16:33 +01:00
|
|
|
|
2019-11-26 13:25:12 +00:00
|
|
|
# Stripping destroys the generated SBCL image
|
|
|
|
dontStrip = true;
|
2019-09-10 21:16:33 +01:00
|
|
|
|
2019-11-26 13:25:12 +00:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Infinitely extensible web-browser (with Lisp development files using WebKitGTK platform port)";
|
|
|
|
homepage = https://next.atlas.engineer;
|
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = [ maintainers.lewo ];
|
|
|
|
platforms = [ "x86_64-linux" ];
|
|
|
|
};
|
|
|
|
}
|