2016-06-23 17:14:02 +02:00
|
|
|
{ stdenv, fetchFromGitHub }:
|
2016-05-31 15:51:30 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "iterm2-${version}";
|
2017-03-24 11:27:41 +01:00
|
|
|
version = "3.0.14";
|
2016-05-31 15:51:30 +02:00
|
|
|
|
2016-06-23 17:14:02 +02:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "gnachman";
|
|
|
|
repo = "iTerm2";
|
|
|
|
rev = "v${version}";
|
2017-03-24 11:27:41 +01:00
|
|
|
sha256 = "03m0ja11w9910z96yi8fzq3436y8xl14q031rdb2w3sapjd54qrj";
|
2016-05-31 15:51:30 +02:00
|
|
|
};
|
|
|
|
|
2016-06-23 17:14:02 +02:00
|
|
|
patches = [ ./disable_updates.patch ];
|
2017-03-24 11:27:41 +01:00
|
|
|
postPatch = ''
|
|
|
|
sed -i -e 's/CODE_SIGN_IDENTITY = "Developer ID Application"/CODE_SIGN_IDENTITY = ""/g' ./iTerm2.xcodeproj/project.pbxproj
|
|
|
|
'';
|
2016-06-23 17:14:02 +02:00
|
|
|
makeFlagsArray = ["Deployment"];
|
2016-05-31 15:51:30 +02:00
|
|
|
installPhase = ''
|
|
|
|
mkdir -p "$out/Applications"
|
2016-06-23 17:14:02 +02:00
|
|
|
mv "build/Deployment/iTerm2.app" "$out/Applications/iTerm.app"
|
2016-05-31 15:51:30 +02:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "A replacement for Terminal and the successor to iTerm";
|
|
|
|
homepage = https://www.iterm2.com/;
|
|
|
|
license = stdenv.lib.licenses.gpl2;
|
|
|
|
platforms = stdenv.lib.platforms.darwin;
|
|
|
|
};
|
|
|
|
}
|