commit
6687a4a727
@ -1,25 +0,0 @@
|
|||||||
{ stdenv, gcc7, pkg-config
|
|
||||||
, next
|
|
||||||
, webkitgtk, gsettings-desktop-schemas
|
|
||||||
}:
|
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
|
||||||
pname = "next-gtk-webkit";
|
|
||||||
inherit (next) src version;
|
|
||||||
|
|
||||||
makeFlags = [ "gtk-webkit" "PREFIX=$(out)" ];
|
|
||||||
installTargets = "install-gtk-webkit";
|
|
||||||
|
|
||||||
nativeBuildInputs = [ gcc7 pkg-config ];
|
|
||||||
buildInputs = [
|
|
||||||
webkitgtk
|
|
||||||
gsettings-desktop-schemas
|
|
||||||
];
|
|
||||||
meta = with stdenv.lib; {
|
|
||||||
description = "Infinitely extensible web-browser (user interface only)";
|
|
||||||
homepage = https://next.atlas.engineer;
|
|
||||||
license = licenses.bsd3;
|
|
||||||
maintainers = [ maintainers.lewo ];
|
|
||||||
platforms = [ "x86_64-linux" ];
|
|
||||||
};
|
|
||||||
}
|
|
@ -1,11 +1,18 @@
|
|||||||
{ pkgs, stdenv, fetchFromGitHub
|
{ stdenv
|
||||||
, gcc7, pkg-config, makeWrapper
|
, fetchFromGitHub
|
||||||
, glib-networking
|
|
||||||
, next-gtk-webkit
|
|
||||||
, lispPackages
|
, lispPackages
|
||||||
, sbcl
|
, sbcl
|
||||||
|
, callPackage
|
||||||
}:
|
}:
|
||||||
|
|
||||||
|
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 {};
|
||||||
|
|
||||||
|
in
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "next";
|
pname = "next";
|
||||||
version = "1.3.4";
|
version = "1.3.4";
|
||||||
@ -17,17 +24,12 @@ stdenv.mkDerivation rec {
|
|||||||
sha256 = "00iqv4xarabl98gdl1rzqkc5v0vfljx1nawsxqsx9x3a9mnxmgxi";
|
sha256 = "00iqv4xarabl98gdl1rzqkc5v0vfljx1nawsxqsx9x3a9mnxmgxi";
|
||||||
};
|
};
|
||||||
|
|
||||||
# Stripping destroys the generated SBCL image
|
nativeBuildInputs = [
|
||||||
dontStrip = true;
|
sbcl
|
||||||
|
] ++ (with lispPackages; [
|
||||||
prePatch = ''
|
prove-asdf
|
||||||
substituteInPlace source/ports/gtk-webkit.lisp \
|
trivial-features
|
||||||
--replace "next-gtk-webkit" "${next-gtk-webkit}/bin/next-gtk-webkit"
|
]);
|
||||||
'';
|
|
||||||
|
|
||||||
nativeBuildInputs =
|
|
||||||
[ sbcl makeWrapper ] ++ (with lispPackages;
|
|
||||||
[ prove-asdf trivial-features ]);
|
|
||||||
|
|
||||||
buildInputs = with lispPackages; [
|
buildInputs = with lispPackages; [
|
||||||
alexandria
|
alexandria
|
||||||
@ -58,7 +60,11 @@ stdenv.mkDerivation rec {
|
|||||||
trivial-clipboard
|
trivial-clipboard
|
||||||
unix-opts
|
unix-opts
|
||||||
];
|
];
|
||||||
propagatedBuildInputs = [ next-gtk-webkit ];
|
|
||||||
|
prePatch = ''
|
||||||
|
substituteInPlace source/ports/gtk-webkit.lisp \
|
||||||
|
--replace "next-gtk-webkit" "${next-gtk-webkit}/bin/next-gtk-webkit"
|
||||||
|
'';
|
||||||
|
|
||||||
buildPhase = ''
|
buildPhase = ''
|
||||||
common-lisp.sh --eval "(require :asdf)" \
|
common-lisp.sh --eval "(require :asdf)" \
|
||||||
@ -71,16 +77,14 @@ stdenv.mkDerivation rec {
|
|||||||
install -D -m0755 next $out/bin/next
|
install -D -m0755 next $out/bin/next
|
||||||
'';
|
'';
|
||||||
|
|
||||||
preFixup = ''
|
# Stripping destroys the generated SBCL image
|
||||||
wrapProgram $out/bin/next \
|
dontStrip = true;
|
||||||
--prefix GIO_EXTRA_MODULES : "${glib-networking.out}/lib/gio/modules"
|
|
||||||
'';
|
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
description = "Infinitely extensible web-browser (with Lisp development files)";
|
description = "Infinitely extensible web-browser (with Lisp development files using WebKitGTK platform port)";
|
||||||
homepage = https://next.atlas.engineer;
|
homepage = https://next.atlas.engineer;
|
||||||
license = licenses.bsd3;
|
license = licenses.bsd3;
|
||||||
maintainers = [ maintainers.lewo ];
|
maintainers = [ maintainers.lewo ];
|
||||||
platforms = [ "x86_64-linux" ];
|
platforms = [ "x86_64-linux" ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -0,0 +1,50 @@
|
|||||||
|
# https://github.com/atlas-engineer/next/tree/master/ports/gtk-webkit
|
||||||
|
|
||||||
|
{ stdenv
|
||||||
|
, pkg-config
|
||||||
|
, next
|
||||||
|
, webkitgtk
|
||||||
|
, gtk3
|
||||||
|
, glib
|
||||||
|
, gsettings-desktop-schemas
|
||||||
|
, glib-networking
|
||||||
|
, gst_all_1
|
||||||
|
, wrapGAppsHook
|
||||||
|
}:
|
||||||
|
|
||||||
|
stdenv.mkDerivation rec {
|
||||||
|
pname = "next-gtk-webkit";
|
||||||
|
inherit (next) src version;
|
||||||
|
|
||||||
|
nativeBuildInputs = [
|
||||||
|
pkg-config
|
||||||
|
wrapGAppsHook
|
||||||
|
];
|
||||||
|
|
||||||
|
buildInputs = [
|
||||||
|
glib
|
||||||
|
glib-networking
|
||||||
|
gsettings-desktop-schemas
|
||||||
|
gtk3
|
||||||
|
webkitgtk
|
||||||
|
gst_all_1.gst-plugins-base
|
||||||
|
gst_all_1.gstreamer
|
||||||
|
];
|
||||||
|
|
||||||
|
makeFlags = [
|
||||||
|
"gtk-webkit"
|
||||||
|
"PREFIX=${placeholder "out"}"
|
||||||
|
];
|
||||||
|
|
||||||
|
installTargets = [
|
||||||
|
"install-gtk-webkit"
|
||||||
|
];
|
||||||
|
|
||||||
|
meta = with stdenv.lib; {
|
||||||
|
description = "Infinitely extensible web-browser (user interface only)";
|
||||||
|
homepage = https://next.atlas.engineer;
|
||||||
|
license = licenses.bsd3;
|
||||||
|
maintainers = [ maintainers.lewo ];
|
||||||
|
platforms = [ "x86_64-linux" ];
|
||||||
|
};
|
||||||
|
}
|
@ -4563,8 +4563,6 @@ in
|
|||||||
|
|
||||||
next = callPackage ../applications/networking/browsers/next { };
|
next = callPackage ../applications/networking/browsers/next { };
|
||||||
|
|
||||||
next-gtk-webkit = callPackage ../applications/networking/browsers/next-gtk-webkit { };
|
|
||||||
|
|
||||||
nfpm = callPackage ../tools/package-management/nfpm { };
|
nfpm = callPackage ../tools/package-management/nfpm { };
|
||||||
|
|
||||||
nginx-config-formatter = callPackage ../tools/misc/nginx-config-formatter { };
|
nginx-config-formatter = callPackage ../tools/misc/nginx-config-formatter { };
|
||||||
|
Loading…
x
Reference in New Issue
Block a user