lol
1{ stdenv, fetchgit, pkgconfig, vte, gtk3, ncurses }:
2
3stdenv.mkDerivation rec {
4 name = "termite-${version}";
5 version = "11";
6
7 src = fetchgit {
8 url = "https://github.com/thestinger/termite";
9 rev = "refs/tags/v${version}";
10 sha256 = "1k91nw19c0p5ghqhs00mn9npa91idfkyiwik3ng6hb4jbnblp5ph";
11 };
12
13 makeFlags = [ "VERSION=v${version}" "PREFIX=" "DESTDIR=$(out)" ];
14
15 buildInputs = [ pkgconfig vte gtk3 ncurses ];
16
17 outputs = [ "out" "terminfo" ];
18
19 postInstall = ''
20 mkdir -p $terminfo/share
21 mv $out/share/terminfo $terminfo/share/terminfo
22
23 mkdir -p $out/nix-support
24 echo "$terminfo" >> $out/nix-support/propagated-user-env-packages
25 '';
26
27 meta = with stdenv.lib; {
28 description = "A simple VTE-based terminal";
29 license = licenses.lgpl2Plus;
30 homepage = https://github.com/thestinger/termite/;
31 maintainers = [ maintainers.koral ];
32 platforms = platforms.all;
33 };
34}