Netsurf libnsfb: 0.2.1 -> 0.2.2

This commit is contained in:
AndersonTorres 2020-09-28 03:48:46 -03:00
parent a5c9ce767b
commit 66fac9a0bf
3 changed files with 48 additions and 32 deletions

View File

@ -1,32 +0,0 @@
{ stdenv, fetchurl, pkgconfig, uilib? "framebuffer", SDL
, buildsystem
}:
stdenv.mkDerivation rec {
name = "netsurf-${libname}-${version}";
libname = "libnsfb";
version = "0.2.1";
src = fetchurl {
url = "http://download.netsurf-browser.org/libs/releases/${libname}-${version}-src.tar.gz";
sha256 = "09qag9lgn5ahanbcyf2rvfmsz15vazfwnl8xpn8f1iczd44b0bv0";
};
nativeBuildInputs = [ pkgconfig ];
buildInputs = [ buildsystem SDL ];
makeFlags = [
"PREFIX=$(out)"
"NSSHARED=${buildsystem}/share/netsurf-buildsystem"
"TARGET=${uilib}"
];
meta = with stdenv.lib; {
homepage = "http://www.netsurf-browser.org/";
description = "CSS parser and selection library for netsurf browser";
license = licenses.gpl2;
maintainers = [ maintainers.vrthra ];
platforms = platforms.linux;
};
}

View File

@ -1,11 +1,27 @@
{ lib, pkgs }:
lib.makeScope pkgs.newScope (self: with self; {
# ui can be: gtk2, gtk3, sixel, framebuffer. Note that console display (sixel)
# requires a terminal that supports `sixel` capabilities, such as mlterm
# or xterm -ti 340
ui = "gtk3";
uilib =
if ui == "gtk2" ||
ui == "gtk3" ||
ui == "framebuffer" then ui
else if ui == "sixel" then "framebuffer"
else null; # Never will happen
SDL =
if ui == "sixel" then pkgs.SDL_sixel
else if ui == "framebuffer" then pkgs.SDL
else null;
buildsystem = callPackage ./buildsystem.nix { };
libcss = callPackage ./libcss.nix { };
libdom = callPackage ./libdom.nix { };
libhubbub = callPackage ./libhubbub.nix { };
libnsbmp = callPackage ./libnsbmp.nix { };
libnsfb = callPackage ./libnsfb.nix { };
libnsgif = callPackage ./libnsgif.nix { };
libnslog = callPackage ./libnslog.nix { };
libnspsl = callPackage ./libnspsl.nix { };

View File

@ -0,0 +1,32 @@
{ stdenv, fetchurl, pkgconfig
, uilib, SDL
, buildsystem
}:
stdenv.mkDerivation rec {
pname = "netsurf-${libname}";
libname = "libnsfb";
version = "0.2.2";
src = fetchurl {
url = "http://download.netsurf-browser.org/libs/releases/${libname}-${version}-src.tar.gz";
sha256 = "sha256-vkRso+tU35A/LamDEdEH11dM0R9awHE+YZFW1NGeo5o=";
};
nativeBuildInputs = [ pkgconfig ];
buildInputs = [ SDL buildsystem ];
makeFlags = [
"PREFIX=$(out)"
"NSSHARED=${buildsystem}/share/netsurf-buildsystem"
"TARGET=${uilib}"
];
meta = with stdenv.lib; {
homepage = "https://www.netsurf-browser.org/projects/${libname}/";
description = "Netsurf framebuffer abstraction library";
license = licenses.mit;
maintainers = [ maintainers.vrthra maintainers.AndersonTorres ];
platforms = platforms.linux;
};
}