2016-06-23 15:14:02 +00:00
|
|
|
{ stdenv, fetchFromGitHub }:
|
2016-05-31 13:51:30 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "iterm2";
|
2017-03-24 10:27:41 +00:00
|
|
|
version = "3.0.14";
|
2016-05-31 13:51:30 +00:00
|
|
|
|
2016-06-23 15:14:02 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "gnachman";
|
|
|
|
repo = "iTerm2";
|
|
|
|
rev = "v${version}";
|
2017-03-24 10:27:41 +00:00
|
|
|
sha256 = "03m0ja11w9910z96yi8fzq3436y8xl14q031rdb2w3sapjd54qrj";
|
2016-05-31 13:51:30 +00:00
|
|
|
};
|
|
|
|
|
2016-06-23 15:14:02 +00:00
|
|
|
patches = [ ./disable_updates.patch ];
|
2017-03-24 10:27:41 +00:00
|
|
|
postPatch = ''
|
|
|
|
sed -i -e 's/CODE_SIGN_IDENTITY = "Developer ID Application"/CODE_SIGN_IDENTITY = ""/g' ./iTerm2.xcodeproj/project.pbxproj
|
|
|
|
'';
|
2019-03-29 03:41:49 +00:00
|
|
|
preConfigure = "LD=$CC";
|
2016-06-23 15:14:02 +00:00
|
|
|
makeFlagsArray = ["Deployment"];
|
2016-05-31 13:51:30 +00:00
|
|
|
installPhase = ''
|
|
|
|
mkdir -p "$out/Applications"
|
2016-06-23 15:14:02 +00:00
|
|
|
mv "build/Deployment/iTerm2.app" "$out/Applications/iTerm.app"
|
2016-05-31 13:51:30 +00: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;
|
|
|
|
};
|
|
|
|
}
|