personal/dotfiles

pkgs/st.nix in master
Repositories | Summary | Log | Files | README.md | LICENSE

st.nix (775B) download


 1{ pkgs
 2, fetchurl
 3, mkSucklessPackage ? pkgs.callPackage ../common/suckless-pkg.nix { }
 4}:
 5
 6mkSucklessPackage rec {
 7  pname = "st";
 8  version = "0.9.2";
 9
10  src = fetchurl {
11    url = "https://dl.suckless.org/st/st-${version}.tar.gz";
12    hash = "sha256-ayFdT0crIdYjLzDyIRF6d34kvP7miVXd77dCZGf5SUs=";
13  };
14
15  configHeader = ../configs/st.h;
16
17  nativeBuildInputs = with pkgs; [
18    pkg-config
19  ];
20
21  buildInputs = with pkgs;  [
22    fontconfig
23    freetype
24    xorg.libX11
25    xorg.libXft
26  ];
27
28  patches = [
29    ../patches/st-remove-terminfo.diff
30    ../patches/st-scrollback-ringbuffer.diff
31    (fetchurl {
32      url = https://st.suckless.org/patches/anysize/st-anysize-20220718-baa9357.diff;
33      hash = "sha256-eO8MEPRb3uaCTtBznG+LaojXqlcj4eT422rQgpxopfo=";
34    })
35  ];
36}