2016-06-23 16:14:02 +01:00
|
|
|
{ stdenv, fetchFromGitHub }:
|
2016-05-31 14:51:30 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "iterm2-${version}";
|
2016-06-23 16:14:02 +01:00
|
|
|
version = "3.0.2";
|
2016-05-31 14:51:30 +01:00
|
|
|
|
2016-06-23 16:14:02 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "gnachman";
|
|
|
|
repo = "iTerm2";
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "121g759i814y1g1g1jwhsmxgg4wrzv08vq7a7qwc7b85a17zbd3h";
|
2016-05-31 14:51:30 +01:00
|
|
|
};
|
|
|
|
|
2016-06-23 16:14:02 +01:00
|
|
|
patches = [ ./disable_updates.patch ];
|
|
|
|
makeFlagsArray = ["Deployment"];
|
2016-05-31 14:51:30 +01:00
|
|
|
installPhase = ''
|
|
|
|
mkdir -p "$out/Applications"
|
2016-06-23 16:14:02 +01:00
|
|
|
mv "build/Deployment/iTerm2.app" "$out/Applications/iTerm.app"
|
2016-05-31 14:51:30 +01: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;
|
|
|
|
};
|
|
|
|
}
|