diff --git a/pkgs/by-name/do/domination/package.nix b/pkgs/by-name/do/domination/package.nix index 4b236657ba25..d4d43547ffbf 100644 --- a/pkgs/by-name/do/domination/package.nix +++ b/pkgs/by-name/do/domination/package.nix @@ -30,16 +30,18 @@ let in stdenv.mkDerivation { pname = "domination"; - version = "1.3.1"; + version = "1.3.3"; # The .zip releases do not contain the build.xml file src = fetchsvn { url = "https://svn.code.sf.net/p/domination/code/Domination"; # There are no tags in the repository. - # Look for commits like "new version x.y.z info on website" - # or "website update for x.y.z". - rev = "2538"; - hash = "sha256-wsLBHkQc1SW+PToyCXIek6qRrRga2nLLkM+5msrnsBo="; + # Look for "(svn rev X)" at + # https://sourceforge.net/p/domination/code/HEAD/tree/Domination/ChangeLog.txt + # Alternatively, look for revs like "changelog update", + # "new version x.y.z info on website", or "website update for x.y.z". + rev = "2616"; + hash = "sha256-/h9TstRxMpeoEsIeSN0MRmyRsiBHomguIPch1Zda8s8="; }; nativeBuildInputs = [ @@ -96,6 +98,8 @@ stdenv.mkDerivation { domination-starts = nixosTests.domination; }; + passthru.updateScript = ./update.tcl; + meta = with lib; { homepage = "https://domination.sourceforge.net/"; downloadPage = "https://domination.sourceforge.net/download.shtml"; diff --git a/pkgs/by-name/do/domination/update.tcl b/pkgs/by-name/do/domination/update.tcl new file mode 100755 index 000000000000..3df285bd29b8 --- /dev/null +++ b/pkgs/by-name/do/domination/update.tcl @@ -0,0 +1,8 @@ +#!/usr/bin/env nix-shell +#!nix-shell -i tclsh -p tcl common-updater-scripts curl + +set changelog_url https://sourceforge.net/p/domination/code/HEAD/tree/Domination/ChangeLog.txt?format=raw + +set changelog [exec -ignorestderr curl -Ls $changelog_url] +regexp {(\d+(\.\d+)*) \(\d+\.\d+\.\d+\) \(svn rev (\d+)\)} $changelog _ version _ rev +exec -ignorestderr update-source-version domination $version --rev=$rev