diff options
author | Marc Scholten <marc@pedigital.de> | 2016-06-23 17:14:02 +0200 |
---|---|---|
committer | Marc Scholten <marc@pedigital.de> | 2016-06-27 15:00:31 +0200 |
commit | 31d3efa0d4836ef863f6db540b0b51712f9b43d4 (patch) | |
tree | 0f75c35e31fa4fa2f08b924d9cfde38f0f2e99ab /pkgs/applications/misc/iterm2 | |
parent | a1f3a0acda2fda88c5423099421343f3974c9aac (diff) |
iTerm2: 2.1.4 -> 3.0.2
Diffstat (limited to 'pkgs/applications/misc/iterm2')
-rw-r--r-- | pkgs/applications/misc/iterm2/default.nix | 17 | ||||
-rw-r--r-- | pkgs/applications/misc/iterm2/disable_updates.patch | 11 |
2 files changed, 21 insertions, 7 deletions
diff --git a/pkgs/applications/misc/iterm2/default.nix b/pkgs/applications/misc/iterm2/default.nix index 4aac8ab72d2c5..add16365324ea 100644 --- a/pkgs/applications/misc/iterm2/default.nix +++ b/pkgs/applications/misc/iterm2/default.nix @@ -1,18 +1,21 @@ -{ stdenv, fetchurl, unzip }: +{ stdenv, fetchFromGitHub }: stdenv.mkDerivation rec { name = "iterm2-${version}"; - version = "2.1.4"; + version = "3.0.2"; - src = fetchurl { - url = "https://iterm2.com/downloads/stable/iTerm2-2_1_4.zip"; - sha256 = "1kb4j1p1kxj9dcsd34709bm2870ffzpq6jig6q9ixp08g0zbhqhh"; + src = fetchFromGitHub { + owner = "gnachman"; + repo = "iTerm2"; + rev = "v${version}"; + sha256 = "121g759i814y1g1g1jwhsmxgg4wrzv08vq7a7qwc7b85a17zbd3h"; }; - buildInputs = [ unzip ]; + patches = [ ./disable_updates.patch ]; + makeFlagsArray = ["Deployment"]; installPhase = '' mkdir -p "$out/Applications" - mv "$(pwd)" "$out/Applications/iTerm.app" + mv "build/Deployment/iTerm2.app" "$out/Applications/iTerm.app" ''; meta = { diff --git a/pkgs/applications/misc/iterm2/disable_updates.patch b/pkgs/applications/misc/iterm2/disable_updates.patch new file mode 100644 index 0000000000000..e717c58f30f16 --- /dev/null +++ b/pkgs/applications/misc/iterm2/disable_updates.patch @@ -0,0 +1,11 @@ +--- iTerm2/sources/iTermPreferences.m 2016-06-23 16:55:28.000000000 +0200 ++++ iTerm2/sources/iTermPreferences.m 2016-06-23 16:55:42.000000000 +0200 +@@ -189,7 +189,7 @@ + kPreferenceKeyInstantReplayMemoryMegabytes: @4, + kPreferenceKeySavePasteAndCommandHistory: @NO, + kPreferenceKeyAddBonjourHostsToProfiles: @NO, +- kPreferenceKeyCheckForUpdatesAutomatically: @YES, ++ kPreferenceKeyCheckForUpdatesAutomatically: @NO, + kPreferenceKeyCheckForTestReleases: @NO, + kPreferenceKeyLoadPrefsFromCustomFolder: @NO, + kPreferenceKeyNeverRemindPrefsChangesLostForFileHaveSelection: @NO, |