@@ -1,4 +1,4 @@
1−{ stdenv, fetchgit, pkgconfig, vte, gtk3, ncurses, makeWrapper, wrapGAppsHook, symlinkJoin
1+{ stdenv, fetchFromGitHub, lib, pkgconfig, vte, gtk3, ncurses, makeWrapper, wrapGAppsHook, symlinkJoin
22, configFile ? null
33}:
44
@@ -7,16 +7,17 @@ let
77 termite = stdenv.mkDerivation {
88 name = "termite-${version}";
99
10− src = fetchgit {
11− url = "https://github.com/thestinger/termite";
12− rev = "refs/tags/v${version}";
10+ src = fetchFromGitHub {
11+ owner = "thestinger";
12+ repo = "termite";
13+ rev = "v${version}";
1314 sha256 = "02cn70ygl93ghhkhs3xdxn5b1yadc255v3yp8cmhhyzsv5027hvj";
15+ fetchSubmodules = true;
1416 };
1517
1618 # https://github.com/thestinger/termite/pull/516
17− patches = [ ./url_regexp_trailing.patch ];
18−
19− postPatch = "sed '1i#include <math.h>' -i termite.cc";
19+ patches = [ ./url_regexp_trailing.patch ./add_errno_header.patch
20+ ] ++ lib.optional stdenv.isDarwin ./remove_ldflags_macos.patch;
2021
2122 makeFlags = [ "VERSION=v${version}" "PREFIX=" "DESTDIR=$(out)" ];
2223