nixpkgs/pkgs/applications/misc/iterm2/default.nix

28 lines
700 B
Nix
Raw Normal View History

2016-06-23 15:14:02 +00:00
{ stdenv, fetchFromGitHub }:
2016-05-31 13:51:30 +00:00
stdenv.mkDerivation rec {
name = "iterm2-${version}";
2016-07-10 09:28:43 +00:00
version = "3.0.4";
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}";
2016-07-10 09:28:43 +00:00
sha256 = "0ffg9l2jvv503h13nd5rjkn5xrahswcqqwmm052qzd6d0lmqjm93";
2016-05-31 13:51:30 +00:00
};
2016-06-23 15:14:02 +00:00
patches = [ ./disable_updates.patch ];
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;
};
}