ff1a94e523
The nixpkgs-unstable channel's programs.sqlite was used to identify packages producing exactly one binary, and these automatically added to their package definitions wherever possible.
50 lines
878 B
Nix
50 lines
878 B
Nix
{ lib
|
|
, stdenv
|
|
, fetchFromGitHub
|
|
, fontconfig
|
|
, libX11
|
|
, libXext
|
|
, libXft
|
|
, ncurses
|
|
, pkg-config
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "xst";
|
|
version = "0.9.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "gnotclub";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "sha256-V7WzletBFOOXBXClDJZIGT2comnC5WDApO1ZCoPKThY=";
|
|
};
|
|
|
|
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 = "Simple terminal fork that can load config from Xresources";
|
|
mainProgram = "xst";
|
|
license = licenses.mit;
|
|
maintainers = [ maintainers.vyp ];
|
|
platforms = platforms.linux;
|
|
};
|
|
}
|