2016-06-23 16:14:02 +01:00
|
|
|
{ stdenv, fetchFromGitHub }:
|
2016-05-31 14:51:30 +01:00
|
|
|
|
2020-03-01 14:53:39 +00:00
|
|
|
/*
|
|
|
|
This derivation is impure: it relies on an Xcode toolchain being installed
|
|
|
|
and available in the expected place. The values of sandboxProfile
|
|
|
|
are copied pretty directly from the MacVim derivation, which
|
2020-03-01 18:30:17 +00:00
|
|
|
is also impure. In order to build you at least need the `sandbox`
|
|
|
|
option set to `relaxed` or `false`.
|
2020-03-01 14:53:39 +00:00
|
|
|
*/
|
|
|
|
|
2016-05-31 14:51:30 +01:00
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "iterm2";
|
2020-03-01 14:53:39 +00:00
|
|
|
version = "3.3.9";
|
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}";
|
2020-03-01 14:53:39 +00:00
|
|
|
sha256 = "06mq3gfjgy8jw2f3fzdsi3pbfkdijfzzlhlw6ixa5bfb4hbcgn5j";
|
2016-05-31 14:51:30 +01:00
|
|
|
};
|
|
|
|
|
2016-06-23 16:14:02 +01: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
|
|
|
|
'';
|
2020-03-01 14:53:39 +00:00
|
|
|
|
2019-03-29 03:41:49 +00:00
|
|
|
preConfigure = "LD=$CC";
|
2020-03-01 14:53:39 +00:00
|
|
|
makeFlagsArray = ["Nix"];
|
2016-05-31 14:51:30 +01:00
|
|
|
installPhase = ''
|
2020-03-01 14:53:39 +00:00
|
|
|
mkdir -p $out/Applications
|
|
|
|
mv Build/Products/Deployment/iTerm2.app $out/Applications/iTerm.app
|
|
|
|
'';
|
|
|
|
|
|
|
|
sandboxProfile = ''
|
|
|
|
(allow file-read* file-write* process-exec mach-lookup)
|
|
|
|
; block homebrew dependencies
|
|
|
|
(deny file-read* file-write* process-exec mach-lookup (subpath "/usr/local") (with no-log))
|
2016-05-31 14:51:30 +01:00
|
|
|
'';
|
|
|
|
|
2020-03-01 14:53:39 +00:00
|
|
|
meta = with stdenv.lib; {
|
2016-05-31 14:51:30 +01:00
|
|
|
description = "A replacement for Terminal and the successor to iTerm";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://www.iterm2.com/";
|
2020-03-01 14:53:39 +00:00
|
|
|
license = licenses.gpl2;
|
|
|
|
maintainers = with maintainers; [ tricktron ];
|
|
|
|
platforms = platforms.darwin;
|
|
|
|
hydraPlatforms = [];
|
2016-05-31 14:51:30 +01:00
|
|
|
};
|
|
|
|
}
|