nixpkgs/pkgs/applications/networking/browsers/next/default.nix

87 lines
1.9 KiB
Nix
Raw Normal View History

2019-09-10 22:16:33 +02:00
{ pkgs, stdenv, fetchFromGitHub
, gcc7, pkg-config, makeWrapper
, glib-networking
, next-gtk-webkit
, lispPackages
, sbcl
}:
stdenv.mkDerivation rec {
pname = "next";
2019-10-10 09:39:48 +02:00
version = "1.3.4";
2019-09-10 22:16:33 +02:00
src = fetchFromGitHub {
owner = "atlas-engineer";
repo = "next";
rev = version;
2019-10-10 09:39:48 +02:00
sha256 = "00iqv4xarabl98gdl1rzqkc5v0vfljx1nawsxqsx9x3a9mnxmgxi";
2019-09-10 22:16:33 +02:00
};
# Stripping destroys the generated SBCL image
dontStrip = true;
prePatch = ''
substituteInPlace source/ports/gtk-webkit.lisp \
--replace "next-gtk-webkit" "${next-gtk-webkit}/bin/next-gtk-webkit"
'';
2019-10-10 09:39:48 +02:00
nativeBuildInputs =
[ sbcl makeWrapper ] ++ (with lispPackages;
[ prove-asdf trivial-features ]);
2019-09-10 22:16:33 +02:00
buildInputs = with lispPackages; [
alexandria
bordeaux-threads
2019-10-10 09:39:48 +02:00
cl-annot
cl-ansi-text
cl-css
cl-hooks
2019-09-10 22:16:33 +02:00
cl-json
cl-markup
cl-ppcre
cl-ppcre-unicode
2019-10-10 09:39:48 +02:00
cl-prevalence
2019-09-10 22:16:33 +02:00
closer-mop
2019-10-10 09:39:48 +02:00
dbus
2019-09-10 22:16:33 +02:00
dexador
ironclad
2019-10-10 09:39:48 +02:00
local-time
log4cl
2019-09-10 22:16:33 +02:00
lparallel
2019-10-10 09:39:48 +02:00
mk-string-metrics
2019-09-10 22:16:33 +02:00
parenscript
quri
sqlite
str
swank
trivia
trivial-clipboard
unix-opts
];
propagatedBuildInputs = [ next-gtk-webkit ];
buildPhase = ''
common-lisp.sh --eval "(require :asdf)" \
--eval "(asdf:load-asd (truename \"next.asd\") :name \"next\")" \
--eval '(asdf:make :next)' \
--quit
'';
installPhase = ''
install -D -m0755 next $out/bin/next
'';
preFixup = ''
wrapProgram $out/bin/next \
--prefix GIO_EXTRA_MODULES : "${glib-networking.out}/lib/gio/modules"
'';
meta = with stdenv.lib; {
description = "Infinitely extensible web-browser (with Lisp development files)";
homepage = https://next.atlas.engineer;
license = licenses.bsd3;
maintainers = [ maintainers.lewo ];
platforms = [ "x86_64-linux" ];
};
}