diff options
author | Robert Helgesson <robert@rycee.net> | 2016-01-05 21:42:31 +0100 |
---|---|---|
committer | Robert Helgesson <robert@rycee.net> | 2016-01-05 21:44:54 +0100 |
commit | ec2a1bcb866d5d52d62d9788d6ba00ac808c08d6 (patch) | |
tree | ccf8ba6f3423543882373f0ee608d3d02fc25d26 /pkgs/games/anki | |
parent | 108cd9aa7f5a9ffbc2d0d95371e07d29d9baa10f (diff) |
anki: disable version check
Diffstat (limited to 'pkgs/games/anki')
-rw-r--r-- | pkgs/games/anki/default.nix | 3 | ||||
-rw-r--r-- | pkgs/games/anki/no-version-check.patch | 13 |
2 files changed, 16 insertions, 0 deletions
diff --git a/pkgs/games/anki/default.nix b/pkgs/games/anki/default.nix index ca18ca194da18..4c06f9126a963 100644 --- a/pkgs/games/anki/default.nix +++ b/pkgs/games/anki/default.nix @@ -26,6 +26,9 @@ stdenv.mkDerivation rec { phases = [ "unpackPhase" "patchPhase" "installPhase" ]; patches = [ + # Disable updated version check. + ./no-version-check.patch + (substituteAll { src = ./fix-paths.patch; inherit lame mplayer qt4; diff --git a/pkgs/games/anki/no-version-check.patch b/pkgs/games/anki/no-version-check.patch new file mode 100644 index 0000000000000..ce166b4b87d53 --- /dev/null +++ b/pkgs/games/anki/no-version-check.patch @@ -0,0 +1,13 @@ +diff -Nurp anki-2.0.33.orig/aqt/main.py anki-2.0.33/aqt/main.py +--- anki-2.0.33.orig/aqt/main.py 2016-01-05 21:37:53.904533750 +0100 ++++ anki-2.0.33/aqt/main.py 2016-01-05 21:39:11.469175976 +0100 +@@ -820,6 +820,9 @@ title="%s">%s</button>''' % ( + ########################################################################## + + def setupAutoUpdate(self): ++ # Don't check for latest version since the versions are ++ # managed in Nixpkgs. ++ return + import aqt.update + self.autoUpdate = aqt.update.LatestVersionFinder(self) + self.connect(self.autoUpdate, SIGNAL("newVerAvail"), self.newVerAvail) |