about summary refs log tree commit diff
path: root/nixpkgs/pkgs/applications/terminal-emulators/st/mcaimi-st.nix
blob: 7ff35a5cb77c639f1235e5b6516e2488e0c884e1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
{ lib
, stdenv
, fetchFromGitHub
, fontconfig
, libX11
, libXext
, libXft
, ncurses
, pkg-config
}:

stdenv.mkDerivation rec {
  pname = "mcaimi-st";
  version = "0.pre+unstable=2021-08-30";

  src = fetchFromGitHub {
    owner = "mcaimi";
    repo = "st";
    rev = "1a8cad03692ee6d32c03a136cdc76bdb169e15d8";
    hash = "sha256-xyVEvD8s1J9Wj9NB4Gg+0ldvde7M8IVpzCOTttC1IY0=";
  };

  nativeBuildInputs = [
    pkg-config
  ];
  buildInputs = [
    fontconfig
    libX11
    libXext
    libXft
    ncurses
  ];

  installPhase = ''
    runHook preInstall

    TERMINFO=$out/share/terminfo make install PREFIX=$out

    runHook postInstall
  '';

  meta = with lib; {
    homepage = "https://github.com/gnotclub/xst";
    description = "Suckless Terminal fork";
    mainProgram = "st";
    license = licenses.mit;
    maintainers = with maintainers; [ AndersonTorres ];
    platforms = platforms.linux;
  };
}