Merge pull request #166916 from OPNA2608/update/palemoon

palemoon: 29.4.5 -> 29.4.5.1, add version test
This commit is contained in:
Anderson Torres 2022-04-02 10:25:10 -03:00 committed by GitHub
commit c2c318b290
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -31,6 +31,8 @@
, zip
, zlib
, withGTK3 ? true, gtk3, gtk2
, testVersion
, palemoon
}:
# Only specific GCC versions are supported with branding
@ -44,12 +46,12 @@ assert with lib.strings; (
stdenv.mkDerivation rec {
pname = "palemoon";
version = "29.4.5";
version = "29.4.5.1";
src = fetchzip {
name = "${pname}-${version}";
url = "http://archive.palemoon.org/source/${pname}-${version}.source.tar.xz";
sha256 = "sha256-ls4uhfFaiFHkmAVbwwBenm71sNm6Tql2tMpzk9D2b5Y=";
sha256 = "sha256-IC7E88dECAz2diVLEEdjMltpNMBhPTlPvbz05BniBMI=";
};
nativeBuildInputs = [
@ -194,7 +196,8 @@ stdenv.mkDerivation rec {
platforms = [ "i686-linux" "x86_64-linux" ];
};
passthru.updateScript = writeScript "update-${pname}" ''
passthru = {
updateScript = writeScript "update-${pname}" ''
#!/usr/bin/env nix-shell
#!nix-shell -i bash -p common-updater-scripts curl libxml2
@ -208,4 +211,8 @@ stdenv.mkDerivation rec {
)"
update-source-version ${pname} "$version"
'';
tests.version = testVersion {
package = palemoon;
};
};
}