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