Unverified Commit 9be006e9 authored by Yohann Boniface's avatar Yohann Boniface Committed by GitHub
Browse files

xosd-xft: init at 1.1.0 (#412244)

parents 8282ff35 565ca567
Loading
Loading
Loading
Loading
+47 −0
Original line number Diff line number Diff line
{
  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;
  };
})