From dc675957bf3ee231b352b1a4a950d517ac3104c6 Mon Sep 17 00:00:00 2001 From: Anderson Torres Date: Sun, 5 May 2024 01:00:11 -0300 Subject: [PATCH] dillo: refactor - fix version string - strictDeps - split outputs - no nested with --- pkgs/by-name/di/dillo/package.nix | 53 ++++++++++++++++++------------- 1 file changed, 31 insertions(+), 22 deletions(-) diff --git a/pkgs/by-name/di/dillo/package.nix b/pkgs/by-name/di/dillo/package.nix index ab79c1bd8f98..fa542d7b83bd 100644 --- a/pkgs/by-name/di/dillo/package.nix +++ b/pkgs/by-name/di/dillo/package.nix @@ -1,33 +1,35 @@ -{ lib -, stdenv -, fetchhg -, autoreconfHook -, fltk -, libXcursor -, libXi -, libXinerama -, libjpeg -, libpng -, mbedtls_2 -, openssl -, perl -, pkg-config -, which +{ + lib, + autoreconfHook, + fetchhg, + fltk, + libXcursor, + libXi, + libXinerama, + libjpeg, + libpng, + mbedtls_2, + openssl, + perl, + pkg-config, + stdenv, + which, }: stdenv.mkDerivation { pname = "dillo"; - version = "unstable-2021-02-09"; + version = "3.0.5-unstable-2021-02-09"; src = fetchhg { url = "https://hg.sr.ht/~seirdy/dillo-mirror"; rev = "67b70f024568b505633524be61fcfbde5337849f"; - sha256 = "sha256-lbn5u9oEL0zt9yBhznBS9Dz9/6kSwRDJeNXKEojty1g="; + hash = "sha256-lbn5u9oEL0zt9yBhznBS9Dz9/6kSwRDJeNXKEojty1g="; }; nativeBuildInputs = [ autoreconfHook pkg-config + fltk which ]; @@ -43,21 +45,28 @@ stdenv.mkDerivation { perl ]; + outputs = [ "out" "doc" "man" ]; + + configureFlags = [ + (lib.enableFeature true "ssl") + ]; + # Workaround build failure on -fno-common toolchains: # ld: main.o:/build/dillo-3.0.5/dpid/dpid.h:64: multiple definition of `sock_set'; # dpid.o:/build/dillo-3.0.5/dpid/dpid.h:64: first defined here env.NIX_CFLAGS_COMPILE = "-fcommon"; - configureFlags = [ "--enable-ssl=yes" ]; + strictDeps = true; - meta = with lib; { + meta = { homepage = "https://hg.sr.ht/~seirdy/dillo-mirror"; description = "A fast graphical web browser with a small footprint"; longDescription = '' Dillo is a small, fast web browser, tailored for older machines. ''; - maintainers = [ maintainers.AndersonTorres ]; - platforms = platforms.linux; - license = licenses.gpl3Plus; + mainProgram = "dillo"; + maintainers = with lib.maintainers; [ AndersonTorres ]; + license = lib.licenses.gpl3Plus; + platforms = lib.platforms.linux; }; }