diff options
author | Anderson Torres <torres.anderson.85@protonmail.com> | 2024-05-04 23:46:30 -0300 |
---|---|---|
committer | Francesco Gazzetta <fgaz@fgaz.me> | 2024-05-10 07:47:04 +0000 |
commit | d28c673f6db80ee965eed92b56c929eaf087b766 (patch) | |
tree | 6d762338f874e02a33d23348db808903b79d2ce7 /pkgs/by-name/di | |
parent | 82b3012809624f50d32892723f9af5bb2d324d26 (diff) |
dillong: migrate to by-name
Diffstat (limited to 'pkgs/by-name/di')
-rw-r--r-- | pkgs/by-name/di/dillong/package.nix | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/pkgs/by-name/di/dillong/package.nix b/pkgs/by-name/di/dillong/package.nix new file mode 100644 index 0000000000000..365b1119f96b8 --- /dev/null +++ b/pkgs/by-name/di/dillong/package.nix @@ -0,0 +1,58 @@ +{ lib +, stdenv +, fetchFromGitHub +, autoreconfHook +, pkg-config +, which +, fltk +, mbedtls_2 +}: + +stdenv.mkDerivation { + pname = "dillong"; + version = "unstable-2021-12-13"; + + src = fetchFromGitHub { + owner = "w00fpack"; + repo = "dilloNG"; + rev = "2804e6e9074b840de3084abb80473983f8e49f5b"; + hash = "sha256-JSBd8Lgw3I20Es/jQHBtybnLd0iAcs16TqOrOxGPGiU="; + }; + + nativeBuildInputs = [ + autoreconfHook + pkg-config + which + ]; + + buildInputs = [ + fltk + mbedtls_2 + ]; + + # The start_page and home settings refer to /usr. + # We can't change /usr to $out because dillorc is copied to the home directory + # on first launch, so the paths would quickly become outdated. + # So we just comment them out, and let dillong use the defaults. + postPatch = '' + substituteInPlace dillorc \ + --replace "start_page=" "#start_page=" \ + --replace "home=" "#home=" + ''; + + configureFlags = [ "--enable-ssl=yes" ]; + + # 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"; + + meta = with lib; { + description = "Fork of Dillo, a lightweight web browser"; + homepage = "https://github.com/w00fpack/dilloNG"; + license = licenses.gpl3Plus; + platforms = platforms.linux; + maintainers = with maintainers; [ fgaz ]; + mainProgram = "dillo"; + }; +} |