mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-11 16:23:26 +00:00
b21621aab5
Otherwise, wayland-scanner would be picked up from the wayland in buildInputs, which isn't cross-friendly and will stop working when we split wayland-scanner into a separate package.
49 lines
898 B
Nix
49 lines
898 B
Nix
{ lib
|
|
, stdenv
|
|
, fetchFromGitHub
|
|
, pkg-config
|
|
, ninja
|
|
, meson
|
|
, scdoc
|
|
, wayland-protocols
|
|
, wayland-scanner
|
|
, freetype
|
|
, harfbuzz
|
|
, cairo
|
|
, pango
|
|
, wayland
|
|
, libxkbcommon
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "tofi";
|
|
version = "0.9.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "philj56";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "sha256-lokp6Zmdt7WuAyuRnHBkKD4ydbNiQY7pEVY97Z62U90=";
|
|
};
|
|
|
|
depsBuildBuild = [ pkg-config ];
|
|
nativeBuildInputs = [
|
|
meson
|
|
ninja
|
|
pkg-config
|
|
scdoc
|
|
wayland-protocols
|
|
wayland-scanner
|
|
];
|
|
buildInputs = [ freetype harfbuzz cairo pango wayland libxkbcommon ];
|
|
|
|
meta = with lib; {
|
|
description = "Tiny dynamic menu for Wayland";
|
|
homepage = "https://github.com/philj56/tofi";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ fbergroth ];
|
|
platforms = platforms.linux;
|
|
mainProgram = "tofi";
|
|
};
|
|
}
|