Skip to content

Commit

Permalink
pkgs.nyxt: init at 2020-10-23
Browse files Browse the repository at this point in the history
  • Loading branch information
bqv authored and 7c6f434c committed Oct 25, 2020
1 parent 7ad5e81 commit be17edc
Show file tree
Hide file tree
Showing 4 changed files with 58 additions and 150 deletions.
95 changes: 0 additions & 95 deletions pkgs/applications/networking/browsers/next/default.nix

This file was deleted.

54 changes: 0 additions & 54 deletions pkgs/applications/networking/browsers/next/next-gtk-webkit.nix

This file was deleted.

57 changes: 57 additions & 0 deletions pkgs/applications/networking/browsers/nyxt/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
{ stdenv, lib, lispPackages, sbcl
, makeWrapper, wrapGAppsHook, gst_all_1
, glib, gdk-pixbuf, cairo
, mime-types, pango, gtk3
, glib-networking, gsettings-desktop-schemas
, xclip, notify-osd, enchant
}:

stdenv.mkDerivation rec {
pname = "nyxt";
inherit (lispPackages.nyxt.meta) version;

src = lispPackages.nyxt;

nativeBuildInputs = [ makeWrapper wrapGAppsHook ];
gstBuildInputs = with gst_all_1; [
gstreamer gst-libav
gst-plugins-base
gst-plugins-good
gst-plugins-bad
gst-plugins-ugly
];
buildInputs = [
glib gdk-pixbuf cairo
mime-types pango gtk3
glib-networking gsettings-desktop-schemas
xclip notify-osd enchant
] ++ gstBuildInputs;

GST_PLUGIN_SYSTEM_PATH_1_0 = lib.concatMapStringsSep ":" (p: "${p}/lib/gstreamer-1.0") gstBuildInputs;

dontWrapGApps = true;
installPhase = ''
mkdir -p $out/share/applications/
sed "s/VERSION/$version/" $src/lib/common-lisp/nyxt/assets/nyxt.desktop > $out/share/applications/nyxt.desktop
for i in 16 32 128 256 512; do
mkdir -p "$out/share/icons/hicolor/''${i}x''${i}/apps/"
cp -f $src/lib/common-lisp/nyxt/assets/nyxt_''${i}x''${i}.png "$out/share/icons/hicolor/''${i}x''${i}/apps/nyxt.png"
done
mkdir -p $out/bin && makeWrapper $src/bin/nyxt $out/bin/nyxt \
--prefix GST_PLUGIN_SYSTEM_PATH_1_0 : "${GST_PLUGIN_SYSTEM_PATH_1_0}" \
--argv0 nyxt "''${gappsWrapperArgs[@]}"
'';

checkPhase = ''
$out/bin/nyxt -h
'';

meta = with stdenv.lib; {
description = "Infinitely extensible web-browser (with Lisp development files using WebKitGTK platform port)";
homepage = "https://nyxt.atlas.engineer";
license = licenses.bsd3;
maintainers = with maintainers; [ lewo ];
platforms = [ "x86_64-linux" ];
};
}
2 changes: 1 addition & 1 deletion pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -5083,7 +5083,7 @@ in

netsniff-ng = callPackage ../tools/networking/netsniff-ng { };

next = callPackage ../applications/networking/browsers/next { };
nyxt = callPackage ../applications/networking/browsers/nyxt { };

nfpm = callPackage ../tools/package-management/nfpm { };

Expand Down

0 comments on commit be17edc

Please sign in to comment.