2021-09-04 23:07:29 +01:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, fontconfig
|
|
|
|
, libX11
|
|
|
|
, libXext
|
|
|
|
, libXft
|
|
|
|
, ncurses
|
|
|
|
, pkg-config
|
|
|
|
}:
|
2017-07-11 17:53:43 +01:00
|
|
|
|
2021-02-06 09:48:12 +00:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "xst";
|
|
|
|
version = "0.8.4.1";
|
2017-07-11 17:53:43 +01:00
|
|
|
|
2017-07-12 21:29:15 +01:00
|
|
|
src = fetchFromGitHub {
|
2019-07-22 11:21:57 +01:00
|
|
|
owner = "gnotclub";
|
2021-02-06 09:48:12 +00:00
|
|
|
repo = pname;
|
2017-07-12 21:29:15 +01:00
|
|
|
rev = "v${version}";
|
2021-02-06 09:48:12 +00:00
|
|
|
sha256 = "nOJcOghtzFkl7B/4XeXptn2TdrGQ4QTKBo+t+9npxOA=";
|
2017-07-11 17:53:43 +01:00
|
|
|
};
|
|
|
|
|
2021-09-04 23:07:29 +01:00
|
|
|
nativeBuildInputs = [
|
|
|
|
pkg-config
|
|
|
|
];
|
|
|
|
buildInputs = [
|
|
|
|
fontconfig
|
|
|
|
libX11
|
|
|
|
libXext
|
|
|
|
libXft
|
|
|
|
ncurses
|
|
|
|
];
|
2017-07-11 17:53:43 +01:00
|
|
|
|
|
|
|
installPhase = ''
|
2021-09-04 23:07:29 +01:00
|
|
|
runHook preInstall
|
|
|
|
|
2017-07-11 17:53:43 +01:00
|
|
|
TERMINFO=$out/share/terminfo make install PREFIX=$out
|
2021-09-04 23:07:29 +01:00
|
|
|
|
|
|
|
runHook postInstall
|
2017-07-11 17:53:43 +01:00
|
|
|
'';
|
|
|
|
|
2021-02-06 09:48:12 +00:00
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://github.com/gnotclub/xst";
|
2017-07-11 17:53:43 +01:00
|
|
|
description = "Simple terminal fork that can load config from Xresources";
|
|
|
|
license = licenses.mit;
|
2017-12-05 22:20:11 +00:00
|
|
|
maintainers = [ maintainers.vyp ];
|
2017-07-11 17:53:43 +01:00
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|