mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-01 19:33:03 +00:00
07faca9bcb
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.
35 lines
927 B
Nix
35 lines
927 B
Nix
{ lib
|
|
, fetchFromGitHub
|
|
, rofi-unwrapped
|
|
, wayland-scanner
|
|
, pkg-config
|
|
, wayland-protocols
|
|
, wayland
|
|
}:
|
|
|
|
rofi-unwrapped.overrideAttrs (oldAttrs: rec {
|
|
pname = "rofi-wayland-unwrapped";
|
|
version = "1.7.5+wayland3";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "lbonn";
|
|
repo = "rofi";
|
|
rev = version;
|
|
fetchSubmodules = true;
|
|
hash = "sha256-pKxraG3fhBh53m+bLPzCigRr6dBcH/A9vbdf67CO2d8=";
|
|
};
|
|
|
|
depsBuildBuild = oldAttrs.depsBuildBuild ++ [ pkg-config ];
|
|
nativeBuildInputs = oldAttrs.nativeBuildInputs ++ [ wayland-protocols wayland-scanner ];
|
|
buildInputs = oldAttrs.buildInputs ++ [ wayland wayland-protocols ];
|
|
|
|
meta = with lib; {
|
|
description = "Window switcher, run dialog and dmenu replacement for Wayland";
|
|
homepage = "https://github.com/lbonn/rofi";
|
|
license = licenses.mit;
|
|
mainProgram = "rofi";
|
|
maintainers = with maintainers; [ bew ];
|
|
platforms = with platforms; linux;
|
|
};
|
|
})
|