domination: add updateScript, 1.3.1 -> 1.3.3 (#377627)

This commit is contained in:
Peder Bergebakken Sundt
2025-04-25 00:35:25 +02:00
committed by GitHub
2 changed files with 17 additions and 5 deletions
+9 -5
View File
@@ -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";
+8
View File
@@ -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