aboutsummaryrefslogtreecommitdiff
path: root/packages/st/pkg.nix
blob: cd95fa787f0c3eaa242bbc1495bc3abf8ef768ad (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
{ stdenv, pkgs, libX11, libXinerama, libXft, fontconfig, pkg-config, ncurses }:
with pkgs.lib;

stdenv.mkDerivation rec {
  name = "local-st-${version}";
  version = "0.8.4";

  src = ./source;

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


  unpackPhase = ''cp -r $src/* .'';

  buildPhase = ''make'';

  installPhase = ''TERMINFO=$out/share/terminfo make PREFIX=$out DESTDIR="" install'';
}