33 lines
1.5 KiB
Nix
33 lines
1.5 KiB
Nix
# Nacre for Nix, from the release tar.gz. Written by tools/package.sh (version and hash); edit the header there.
|
|
# nix build .#default or nix profile install . (from the repo), or callPackage this file.
|
|
{ lib, stdenv, fetchurl, autoPatchelfHook, makeWrapper, wrapGAppsHook4, glib-networking, webkitgtk_6_0, gtk4, libsoup_3, libepoxy, pam, dbus, gst_all_1 }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "nacre";
|
|
version = "0.4.1";
|
|
src = fetchurl {
|
|
url = "https://astar76.com/git/astar76/Nacre/releases/download/v${version}/Nacre-${version}-Linux-x86_64.tar.gz";
|
|
hash = "sha256-NZAqKlOaUzIIFOn9T/ZwwRgVP9jqpseI7y3PN73LLP8=";
|
|
};
|
|
nativeBuildInputs = [ autoPatchelfHook makeWrapper wrapGAppsHook4 ];
|
|
buildInputs = [ webkitgtk_6_0 gtk4 libsoup_3 libepoxy pam dbus glib-networking gst_all_1.gstreamer gst_all_1.gst-plugins-base gst_all_1.gst-plugins-good gst_all_1.gst-plugins-bad gst_all_1.gst-libav stdenv.cc.cc.lib ];
|
|
# Loaded with dlopen at run time, so autoPatchelf can't see them.
|
|
runtimeDependencies = [ ];
|
|
dontBuild = true;
|
|
installPhase = ''
|
|
runHook preInstall
|
|
mkdir -p $out
|
|
for d in bin lib share; do [ ! -d $d ] || cp -R $d $out/; done
|
|
install -Dm644 README.md $out/share/doc/nacre/README.md
|
|
runHook postInstall
|
|
'';
|
|
|
|
meta = {
|
|
description = "A web browser built on WebKitGTK";
|
|
homepage = "https://astar76.com/git/astar76/Nacre";
|
|
license = lib.licenses.mpl20;
|
|
platforms = [ "x86_64-linux" ];
|
|
mainProgram = "nacre";
|
|
sourceProvenance = [ lib.sourceTypes.binaryNativeCode ];
|
|
};
|
|
}
|