mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-10-02 13:00:23 +00:00
@@ -96,6 +96,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
pkgs/by-name/do/domination/update.tcl
Executable file
8
pkgs/by-name/do/domination/update.tcl
Executable 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
|
||||
Reference in New Issue
Block a user