From fac9f0f2bc043b31efabd85599c1fadc61fdf7ad Mon Sep 17 00:00:00 2001 From: Anderson Torres Date: Sat, 22 Jul 2023 13:25:54 -0300 Subject: [PATCH] netsurf.libnsfb: rewrite --- .../networking/browsers/netsurf/libnsfb.nix | 29 ++++++++++--------- 1 file changed, 16 insertions(+), 13 deletions(-) diff --git a/pkgs/applications/networking/browsers/netsurf/libnsfb.nix b/pkgs/applications/networking/browsers/netsurf/libnsfb.nix index d093df466298..079e351ab18a 100644 --- a/pkgs/applications/networking/browsers/netsurf/libnsfb.nix +++ b/pkgs/applications/networking/browsers/netsurf/libnsfb.nix @@ -1,19 +1,23 @@ -{ lib, stdenv, fetchurl, pkg-config -, uilib, SDL +{ lib +, stdenv +, fetchurl +, SDL +, pkg-config , buildsystem +, uilib }: -stdenv.mkDerivation rec { - pname = "netsurf-${libname}"; - libname = "libnsfb"; +stdenv.mkDerivation (finalAttrs: { + pname = "netsurf-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="; + url = "http://download.netsurf-browser.org/libs/releases/libnsfb-${finalAttrs.version}-src.tar.gz"; + hash = "sha256-vkRso+tU35A/LamDEdEH11dM0R9awHE+YZFW1NGeo5o="; }; nativeBuildInputs = [ pkg-config ]; + buildInputs = [ SDL buildsystem ]; makeFlags = [ @@ -22,11 +26,10 @@ stdenv.mkDerivation rec { "TARGET=${uilib}" ]; - meta = with lib; { - homepage = "https://www.netsurf-browser.org/projects/${libname}/"; + meta = { + homepage = "https://www.netsurf-browser.org/projects/libnsfb/"; description = "Netsurf framebuffer abstraction library"; - license = licenses.mit; - maintainers = [ maintainers.vrthra maintainers.AndersonTorres ]; - platforms = platforms.linux; + license = lib.licenses.mit; + inherit (buildsystem.meta) maintainers platforms; }; -} +})