Merge pull request #146571 from AndersonTorres/new-palemoon

palemoon: 29.4.1 -> 29.4.2.1

authored by Anderson Torres and committed by GitHub 754a73ae 5cf75a4c

+101 -85
+55 -85
pkgs/applications/networking/browsers/palemoon/default.nix
··· 1 - { stdenv 2 - , lib 3 - , fetchzip 4 - , writeScript 5 , alsa-lib 6 , autoconf213 7 , cairo 8 - , desktop-file-utils 9 , dbus 10 , dbus-glib 11 , ffmpeg 12 , fontconfig 13 , freetype 14 , gnome2 15 , gnum4 16 - , gtk2 17 - , libevent 18 , libGL 19 , libGLU 20 , libnotify 21 , libpulseaudio 22 , libstartup_notification 23 , perl 24 , pkg-config 25 , python2 26 , unzip 27 , which 28 , wrapGAppsHook 29 , xorg 30 , yasm 31 , zip 32 , zlib 33 - , withGTK3 ? true 34 - , gtk3 35 }: 36 37 # Only specific GCC versions are supported with branding ··· 43 && versionOlder stdenv.cc.version "11" 44 ); 45 46 - let 47 - libPath = lib.makeLibraryPath [ 48 - ffmpeg 49 - libpulseaudio 50 - ]; 51 - gtkVersion = if withGTK3 then "3" else "2"; 52 - in 53 stdenv.mkDerivation rec { 54 pname = "palemoon"; 55 - version = "29.4.1"; 56 57 src = fetchzip { 58 - url = "http://archive.palemoon.org/source/palemoon-${version}-source.tar.xz"; 59 - stripRoot = false; 60 - sha256 = "0kb9yn1q8rrmnlsyvxvv2gdgyyf12g6rxlyh82lmc0gysvd4qd2c"; 61 }; 62 63 - passthru.updateScript = writeScript "update-${pname}" '' 64 - #!/usr/bin/env nix-shell 65 - #!nix-shell -i bash -p common-updater-scripts curl libxml2 66 - 67 - set -eu -o pipefail 68 - 69 - # Only release note announcement == finalized release 70 - version="$( 71 - curl -s 'http://www.palemoon.org/releasenotes.shtml' | 72 - xmllint --html --xpath 'html/body/table/tbody/tr/td/h3/text()' - 2>/dev/null | head -n1 | 73 - sed 's/v\(\S*\).*/\1/' 74 - )" 75 - update-source-version ${pname} "$version" 76 - ''; 77 - 78 nativeBuildInputs = [ 79 autoconf213 80 desktop-file-utils ··· 99 freetype 100 gnome2.GConf 101 gtk2 102 - libevent 103 libGL 104 libGLU 105 libnotify 106 libpulseaudio 107 libstartup_notification 108 zlib 109 ] 110 ++ (with xorg; [ ··· 118 pixman 119 xorgproto 120 ]) 121 - ++ lib.optional withGTK3 gtk3; 122 123 enableParallelBuilding = true; 124 125 configurePhase = '' 126 runHook preConfigure ··· 128 export MOZCONFIG=$PWD/mozconfig 129 export MOZ_NOSPAM=1 130 131 - # Keep this similar to the official .mozconfig file, 132 - # only minor changes for portability are permitted with branding. 133 - # https://developer.palemoon.org/build/linux/ 134 - echo > $MOZCONFIG ' 135 - # Clear this if not a 64bit build 136 - _BUILD_64=${lib.optionalString stdenv.hostPlatform.is64bit "1"} 137 - 138 - # Set GTK Version to 2 or 3 139 - _GTK_VERSION=${gtkVersion} 140 - 141 - # Standard build options for Pale Moon 142 - ac_add_options --enable-application=palemoon 143 - ac_add_options --enable-optimize="-O2 -w" 144 - ac_add_options --enable-default-toolkit=cairo-gtk$_GTK_VERSION 145 - ac_add_options --enable-jemalloc 146 - ac_add_options --enable-strip 147 - ac_add_options --enable-devtools 148 - ac_add_options --enable-av1 149 150 - ac_add_options --disable-eme 151 - ac_add_options --disable-webrtc 152 - ac_add_options --disable-gamepad 153 - ac_add_options --disable-tests 154 - ac_add_options --disable-debug 155 - ac_add_options --disable-necko-wifi 156 - ac_add_options --disable-updater 157 - 158 - ac_add_options --with-pthreads 159 - 160 - # Please see https://www.palemoon.org/redist.shtml for restrictions when using the official branding. 161 - ac_add_options --enable-official-branding 162 - export MOZILLA_OFFICIAL=1 163 - 164 - ac_add_options --x-libraries=${lib.makeLibraryPath [ xorg.libX11 ]} 165 - 166 - # 167 - # NixOS-specific adjustments 168 - # 169 - 170 - ac_add_options --prefix=$out 171 - 172 - mk_add_options MOZ_MAKE_FLAGS="-j${if enableParallelBuilding then "$NIX_BUILD_CORES" else "1"}" 173 - mk_add_options AUTOCONF=${autoconf213}/bin/autoconf 174 - ' 175 176 runHook postConfigure 177 ''; ··· 212 213 dontWrapGApps = true; 214 215 - preFixup = '' 216 - gappsWrapperArgs+=( 217 - --prefix LD_LIBRARY_PATH : "${libPath}" 218 - ) 219 wrapGApp $out/lib/palemoon-${version}/palemoon 220 ''; 221 222 meta = with lib; { 223 description = "An Open Source, Goanna-based web browser focusing on efficiency and customization"; 224 longDescription = '' 225 Pale Moon is an Open Source, Goanna-based web browser focusing on ··· 232 experience, while offering full customization and a growing collection of 233 extensions and themes to make the browser truly your own. 234 ''; 235 - homepage = "https://www.palemoon.org/"; 236 changelog = "https://repo.palemoon.org/MoonchildProductions/Pale-Moon/releases/tag/${version}_Release"; 237 license = licenses.mpl20; 238 maintainers = with maintainers; [ AndersonTorres OPNA2608 ]; 239 platforms = [ "i686-linux" "x86_64-linux" ]; 240 }; 241 }
··· 1 + { lib 2 + , stdenv 3 , alsa-lib 4 , autoconf213 5 , cairo 6 , dbus 7 , dbus-glib 8 + , desktop-file-utils 9 + , fetchzip 10 , ffmpeg 11 , fontconfig 12 , freetype 13 , gnome2 14 , gnum4 15 , libGL 16 , libGLU 17 + , libevent 18 , libnotify 19 , libpulseaudio 20 , libstartup_notification 21 + , pango 22 , perl 23 , pkg-config 24 , python2 25 , unzip 26 , which 27 , wrapGAppsHook 28 + , writeScript 29 , xorg 30 , yasm 31 , zip 32 , zlib 33 + , withGTK3 ? true, gtk3, gtk2 34 }: 35 36 # Only specific GCC versions are supported with branding ··· 42 && versionOlder stdenv.cc.version "11" 43 ); 44 45 stdenv.mkDerivation rec { 46 pname = "palemoon"; 47 + version = "29.4.2.1"; 48 49 src = fetchzip { 50 + name = "${pname}-${version}"; 51 + url = "http://archive.palemoon.org/source/${pname}-${version}.source.tar.xz"; 52 + sha256 = "sha256-iTn1jbbsw7u+rVe/1J9yJbS0wi5Rlkcy4rO8nWcXu2I="; 53 }; 54 55 nativeBuildInputs = [ 56 autoconf213 57 desktop-file-utils ··· 76 freetype 77 gnome2.GConf 78 gtk2 79 libGL 80 libGLU 81 + libevent 82 libnotify 83 libpulseaudio 84 libstartup_notification 85 + pango 86 zlib 87 ] 88 ++ (with xorg; [ ··· 96 pixman 97 xorgproto 98 ]) 99 + ++ lib.optionals withGTK3 [ 100 + gtk3 101 + ]; 102 103 enableParallelBuilding = true; 104 + 105 + postPatch = '' 106 + patchShebangs ./mach 107 + ''; 108 109 configurePhase = '' 110 runHook preConfigure ··· 112 export MOZCONFIG=$PWD/mozconfig 113 export MOZ_NOSPAM=1 114 115 + export build64=${lib.optionalString stdenv.hostPlatform.is64bit "1"} 116 + export gtkversion=${if withGTK3 then "3" else "2"} 117 + export xlibs=${lib.makeLibraryPath [ xorg.libX11 ]} 118 + export prefix=$out 119 + export mozmakeflags="-j${if enableParallelBuilding then "$NIX_BUILD_CORES" else "1"}" 120 + export autoconf=${autoconf213}/bin/autoconf 121 122 + substituteAll ${./mozconfig} $MOZCONFIG 123 124 runHook postConfigure 125 ''; ··· 160 161 dontWrapGApps = true; 162 163 + preFixup = 164 + let 165 + libPath = lib.makeLibraryPath [ 166 + ffmpeg 167 + libpulseaudio 168 + ]; 169 + in 170 + '' 171 + gappsWrapperArgs+=( 172 + --prefix LD_LIBRARY_PATH : "${libPath}" 173 + ) 174 wrapGApp $out/lib/palemoon-${version}/palemoon 175 ''; 176 177 meta = with lib; { 178 + homepage = "https://www.palemoon.org/"; 179 description = "An Open Source, Goanna-based web browser focusing on efficiency and customization"; 180 longDescription = '' 181 Pale Moon is an Open Source, Goanna-based web browser focusing on ··· 188 experience, while offering full customization and a growing collection of 189 extensions and themes to make the browser truly your own. 190 ''; 191 changelog = "https://repo.palemoon.org/MoonchildProductions/Pale-Moon/releases/tag/${version}_Release"; 192 license = licenses.mpl20; 193 maintainers = with maintainers; [ AndersonTorres OPNA2608 ]; 194 platforms = [ "i686-linux" "x86_64-linux" ]; 195 }; 196 + 197 + passthru.updateScript = writeScript "update-${pname}" '' 198 + #!/usr/bin/env nix-shell 199 + #!nix-shell -i bash -p common-updater-scripts curl libxml2 200 + 201 + set -eu -o pipefail 202 + 203 + # Only release note announcement == finalized release 204 + version="$( 205 + curl -s 'http://www.palemoon.org/releasenotes.shtml' | 206 + xmllint --html --xpath 'html/body/table/tbody/tr/td/h3/text()' - 2>/dev/null | head -n1 | 207 + sed 's/v\(\S*\).*/\1/' 208 + )" 209 + update-source-version ${pname} "$version" 210 + ''; 211 }
+46
pkgs/applications/networking/browsers/palemoon/mozconfig
···
··· 1 + # -*- mode: sh; coding: utf-8-unix; fill-column: 80 -*- 2 + 3 + # Mozconfig template file for nixpkgs 4 + 5 + # Keep this similar to the official .mozconfig file, only minor changes for 6 + # portability are permitted with branding. 7 + # https://developer.palemoon.org/build/linux/ 8 + 9 + _BUILD_64=@build64@ 10 + 11 + # Set GTK Version 12 + _GTK_VERSION=@gtkversion@ 13 + 14 + # Standard build options for Pale Moon 15 + ac_add_options --enable-application=palemoon 16 + ac_add_options --enable-optimize="-O2 -w" 17 + ac_add_options --enable-default-toolkit=cairo-gtk$_GTK_VERSION 18 + ac_add_options --enable-jemalloc 19 + ac_add_options --enable-strip 20 + ac_add_options --enable-devtools 21 + ac_add_options --enable-av1 22 + 23 + ac_add_options --disable-eme 24 + ac_add_options --disable-webrtc 25 + ac_add_options --disable-gamepad 26 + ac_add_options --disable-tests 27 + ac_add_options --disable-debug 28 + ac_add_options --disable-necko-wifi 29 + ac_add_options --disable-updater 30 + 31 + ac_add_options --with-pthreads 32 + 33 + # Please see https://www.palemoon.org/redist.shtml for restrictions when using the official branding. 34 + ac_add_options --enable-official-branding 35 + export MOZILLA_OFFICIAL=1 36 + 37 + ac_add_options --x-libraries=@xlibs@ 38 + 39 + # 40 + # NixOS-specific adjustments 41 + # 42 + 43 + ac_add_options --prefix=@prefix@ 44 + 45 + mk_add_options MOZ_MAKE_FLAGS=@mozmakeflags@ 46 + mk_add_options AUTOCONF=@autoconf@