xosd-xft: init at 1.1.0 (#412244)

This commit is contained in:
Yohann Boniface
2025-08-24 07:39:19 +02:00
committed by GitHub
+47
View File
@@ -0,0 +1,47 @@
{
lib,
stdenv,
fetchFromGitHub,
versionCheckHook,
nix-update-script,
pkg-config,
xorg,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "xosd-xft";
version = "1.1.0";
src = fetchFromGitHub {
owner = "kdmurthy";
repo = "libxosd-xft";
tag = finalAttrs.version;
hash = "sha256-hsI7KMDmqGoGExSI3K7JiKNoiwZMNLubekuEEgkmQTg=";
};
nativeBuildInputs = [
pkg-config
];
buildInputs = with xorg; [
libXft
libXrandr
libXinerama
];
nativeInstallCheckInputs = [
versionCheckHook
];
doInstallCheck = true;
versionCheckProgram = "${placeholder "out"}/bin/osd-echo";
versionCheckProgramArg = "--help";
updateScript = nix-update-script { };
meta = {
description = "Show text content with Xft/TTF fonts on X11 display";
homepage = "https://github.com/kdmurthy/libxosd-xft";
license = lib.licenses.gpl3Plus;
maintainers = with lib.maintainers; [ ulysseszhan ];
platforms = lib.platforms.linux;
};
})