dillong: refactor

- fix version string
- strictDeps
- split outputs
- no nested with

authored by Anderson Torres and committed by Francesco Gazzetta bc5cd8db d28c673f

+29 -21
+29 -21
pkgs/by-name/di/dillong/package.nix
··· 1 - { lib 2 - , stdenv 3 - , fetchFromGitHub 4 - , autoreconfHook 5 - , pkg-config 6 - , which 7 - , fltk 8 - , mbedtls_2 9 }: 10 11 stdenv.mkDerivation { 12 pname = "dillong"; 13 - version = "unstable-2021-12-13"; 14 15 src = fetchFromGitHub { 16 owner = "w00fpack"; ··· 21 22 nativeBuildInputs = [ 23 autoreconfHook 24 pkg-config 25 which 26 ]; ··· 30 mbedtls_2 31 ]; 32 33 # The start_page and home settings refer to /usr. 34 # We can't change /usr to $out because dillorc is copied to the home directory 35 # on first launch, so the paths would quickly become outdated. ··· 40 --replace "home=" "#home=" 41 ''; 42 43 - configureFlags = [ "--enable-ssl=yes" ]; 44 - 45 - # Workaround build failure on -fno-common toolchains: 46 - # ld: main.o:/build/dillo-3.0.5/dpid/dpid.h:64: multiple definition of `sock_set'; 47 - # dpid.o:/build/dillo-3.0.5/dpid/dpid.h:64: first defined here 48 - env.NIX_CFLAGS_COMPILE = "-fcommon"; 49 - 50 - meta = with lib; { 51 description = "Fork of Dillo, a lightweight web browser"; 52 - homepage = "https://github.com/w00fpack/dilloNG"; 53 - license = licenses.gpl3Plus; 54 - platforms = platforms.linux; 55 - maintainers = with maintainers; [ fgaz ]; 56 mainProgram = "dillo"; 57 }; 58 }
··· 1 + { 2 + lib, 3 + autoreconfHook, 4 + fetchFromGitHub, 5 + fltk, 6 + mbedtls_2, 7 + pkg-config, 8 + stdenv, 9 + which, 10 }: 11 12 stdenv.mkDerivation { 13 pname = "dillong"; 14 + version = "0-unstable-2021-12-13"; 15 16 src = fetchFromGitHub { 17 owner = "w00fpack"; ··· 22 23 nativeBuildInputs = [ 24 autoreconfHook 25 + fltk 26 pkg-config 27 which 28 ]; ··· 32 mbedtls_2 33 ]; 34 35 + outputs = [ "out" "doc" "man" ]; 36 + 37 + configureFlags = [ 38 + (lib.enableFeature true "ssl") 39 + ]; 40 + 41 + strictDeps = true; 42 + 43 + # Workaround build failure on -fno-common toolchains: 44 + # ld: main.o:/build/dillo-3.0.5/dpid/dpid.h:64: multiple definition of `sock_set'; 45 + # dpid.o:/build/dillo-3.0.5/dpid/dpid.h:64: first defined here 46 + env.NIX_CFLAGS_COMPILE = "-fcommon"; 47 + 48 # The start_page and home settings refer to /usr. 49 # We can't change /usr to $out because dillorc is copied to the home directory 50 # on first launch, so the paths would quickly become outdated. ··· 55 --replace "home=" "#home=" 56 ''; 57 58 + meta = { 59 + homepage = "https://github.com/w00fpack/dilloNG"; 60 description = "Fork of Dillo, a lightweight web browser"; 61 + license = lib.licenses.gpl3Plus; 62 mainProgram = "dillo"; 63 + maintainers = with lib.maintainers; [ fgaz ]; 64 + platforms = lib.platforms.linux; 65 }; 66 }