2019-11-26 14:25:12 +01:00
|
|
|
{ stdenv
|
|
|
|
, fetchFromGitHub
|
2019-09-10 22:16:33 +02:00
|
|
|
, lispPackages
|
|
|
|
, sbcl
|
2019-11-26 14:25:12 +01:00
|
|
|
, callPackage
|
2019-09-10 22:16:33 +02:00
|
|
|
}:
|
|
|
|
|
2019-11-26 14:25:12 +01: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 22:16:33 +02:00
|
|
|
|
2019-11-26 14:25:12 +01:00
|
|
|
in
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "next";
|
2020-03-09 18:50:34 +01:00
|
|
|
version = "1.5.0";
|
2019-09-10 22:16:33 +02:00
|
|
|
|
2019-11-26 14:25:12 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "atlas-engineer";
|
|
|
|
repo = "next";
|
|
|
|
rev = version;
|
2020-03-09 18:50:34 +01:00
|
|
|
sha256 = "1gqkp185wcwaxr8py90hqk44nqjblrrdwvig19gizrbzr2gx2zhy";
|
2019-11-26 14:25:12 +01:00
|
|
|
};
|
2019-09-10 22:16:33 +02:00
|
|
|
|
2019-11-26 14:25:12 +01:00
|
|
|
nativeBuildInputs = [
|
|
|
|
sbcl
|
|
|
|
] ++ (with lispPackages; [
|
|
|
|
prove-asdf
|
|
|
|
trivial-features
|
|
|
|
]);
|
2019-09-10 22:16:33 +02:00
|
|
|
|
2019-11-26 14:25:12 +01: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 05:18:59 +01:00
|
|
|
plump
|
2019-11-26 14:25:12 +01:00
|
|
|
quri
|
2020-02-06 05:18:59 +01:00
|
|
|
serapeum
|
2019-11-26 14:25:12 +01:00
|
|
|
sqlite
|
|
|
|
str
|
|
|
|
swank
|
|
|
|
trivia
|
|
|
|
trivial-clipboard
|
2020-02-06 05:18:59 +01:00
|
|
|
trivial-types
|
2019-11-26 14:25:12 +01:00
|
|
|
unix-opts
|
|
|
|
];
|
2019-10-10 09:39:48 +02:00
|
|
|
|
2020-01-02 21:26:38 +01:00
|
|
|
# This reference is unfortunately not detected by Nix
|
|
|
|
propagatedBuildInputs = [ next-gtk-webkit ];
|
|
|
|
|
2019-11-26 14:25:12 +01:00
|
|
|
prePatch = ''
|
|
|
|
substituteInPlace source/ports/gtk-webkit.lisp \
|
|
|
|
--replace "next-gtk-webkit" "${next-gtk-webkit}/bin/next-gtk-webkit"
|
|
|
|
'';
|
2019-09-10 22:16:33 +02:00
|
|
|
|
2019-11-26 14:25:12 +01: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 22:16:33 +02:00
|
|
|
|
2019-11-26 14:25:12 +01:00
|
|
|
installPhase = ''
|
|
|
|
install -D -m0755 next $out/bin/next
|
|
|
|
'';
|
2019-09-10 22:16:33 +02:00
|
|
|
|
2019-11-26 14:25:12 +01:00
|
|
|
# Stripping destroys the generated SBCL image
|
|
|
|
dontStrip = true;
|
2019-09-10 22:16:33 +02:00
|
|
|
|
2019-11-26 14:25:12 +01:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Infinitely extensible web-browser (with Lisp development files using WebKitGTK platform port)";
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://next.atlas.engineer";
|
2019-11-26 14:25:12 +01:00
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = [ maintainers.lewo ];
|
|
|
|
platforms = [ "x86_64-linux" ];
|
|
|
|
};
|
|
|
|
}
|