Merge pull request #16459 from mpscholten/iterm2-build-from-source
iTerm2: 2.1.4 -> 3.0.2 and refactoring
This commit is contained in:
commit
c44098feac
2 changed files with 21 additions and 7 deletions
|
@ -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 = {
|
||||
|
|
11
pkgs/applications/misc/iterm2/disable_updates.patch
Normal file
11
pkgs/applications/misc/iterm2/disable_updates.patch
Normal file
|
@ -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,
|
Loading…
Reference in a new issue