Files
nixpkgs/pkgs/by-name/he/herbe/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

48 lines
891 B
Nix

{
stdenv,
lib,
fetchFromGitHub,
libX11,
libXft,
freetype,
patches ? [ ],
extraLibs ? [ ],
}:
stdenv.mkDerivation rec {
pname = "herbe";
version = "1.0.0";
src = fetchFromGitHub {
owner = "dudik";
repo = "herbe";
rev = version;
sha256 = "0358i5jmmlsvy2j85ij7m1k4ar2jr5lsv7y1c58dlf9710h186cv";
};
inherit patches;
postPatch = ''
sed -i 's_/usr/include/freetype2_${freetype.dev}/include/freetype2_' Makefile
'';
buildInputs = [
libX11
libXft
freetype
]
++ extraLibs;
makeFlags = [ "PREFIX=$(out)" ];
meta = with lib; {
description = "Daemon-less notifications without D-Bus";
homepage = "https://github.com/dudik/herbe";
license = licenses.mit;
# NOTE: Could also work on 'unix'.
platforms = platforms.linux;
maintainers = with maintainers; [ wishfort36 ];
mainProgram = "herbe";
};
}