palemoon: 29.4.5 -> 29.4.5.1, add version test
This commit is contained in:
parent
990469ae68
commit
dfdab81577
|
@ -31,6 +31,8 @@
|
||||||
, zip
|
, zip
|
||||||
, zlib
|
, zlib
|
||||||
, withGTK3 ? true, gtk3, gtk2
|
, withGTK3 ? true, gtk3, gtk2
|
||||||
|
, testVersion
|
||||||
|
, palemoon
|
||||||
}:
|
}:
|
||||||
|
|
||||||
# Only specific GCC versions are supported with branding
|
# Only specific GCC versions are supported with branding
|
||||||
|
@ -44,12 +46,12 @@ assert with lib.strings; (
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "palemoon";
|
pname = "palemoon";
|
||||||
version = "29.4.5";
|
version = "29.4.5.1";
|
||||||
|
|
||||||
src = fetchzip {
|
src = fetchzip {
|
||||||
name = "${pname}-${version}";
|
name = "${pname}-${version}";
|
||||||
url = "http://archive.palemoon.org/source/${pname}-${version}.source.tar.xz";
|
url = "http://archive.palemoon.org/source/${pname}-${version}.source.tar.xz";
|
||||||
sha256 = "sha256-ls4uhfFaiFHkmAVbwwBenm71sNm6Tql2tMpzk9D2b5Y=";
|
sha256 = "sha256-IC7E88dECAz2diVLEEdjMltpNMBhPTlPvbz05BniBMI=";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
|
@ -194,18 +196,23 @@ stdenv.mkDerivation rec {
|
||||||
platforms = [ "i686-linux" "x86_64-linux" ];
|
platforms = [ "i686-linux" "x86_64-linux" ];
|
||||||
};
|
};
|
||||||
|
|
||||||
passthru.updateScript = writeScript "update-${pname}" ''
|
passthru = {
|
||||||
#!/usr/bin/env nix-shell
|
updateScript = writeScript "update-${pname}" ''
|
||||||
#!nix-shell -i bash -p common-updater-scripts curl libxml2
|
#!/usr/bin/env nix-shell
|
||||||
|
#!nix-shell -i bash -p common-updater-scripts curl libxml2
|
||||||
|
|
||||||
set -eu -o pipefail
|
set -eu -o pipefail
|
||||||
|
|
||||||
# Only release note announcement == finalized release
|
# Only release note announcement == finalized release
|
||||||
version="$(
|
version="$(
|
||||||
curl -s 'http://www.palemoon.org/releasenotes.shtml' |
|
curl -s 'http://www.palemoon.org/releasenotes.shtml' |
|
||||||
xmllint --html --xpath 'html/body/table/tbody/tr/td/h3/text()' - 2>/dev/null | head -n1 |
|
xmllint --html --xpath 'html/body/table/tbody/tr/td/h3/text()' - 2>/dev/null | head -n1 |
|
||||||
sed 's/v\(\S*\).*/\1/'
|
sed 's/v\(\S*\).*/\1/'
|
||||||
)"
|
)"
|
||||||
update-source-version ${pname} "$version"
|
update-source-version ${pname} "$version"
|
||||||
'';
|
'';
|
||||||
|
tests.version = testVersion {
|
||||||
|
package = palemoon;
|
||||||
|
};
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue