nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 fetchFromGitHub,
4 rofi-unwrapped,
5 wayland-scanner,
6 pkg-config,
7 wayland-protocols,
8 wayland,
9}:
10
11rofi-unwrapped.overrideAttrs (oldAttrs: rec {
12 pname = "rofi-wayland-unwrapped";
13 version = "1.7.9+wayland1";
14
15 src = fetchFromGitHub {
16 owner = "lbonn";
17 repo = "rofi";
18 rev = version;
19 fetchSubmodules = true;
20 hash = "sha256-tLSU0Q221Pg3JYCT+w9ZT4ZbbB5+s8FwsZa/ehfn00s=";
21 };
22
23 depsBuildBuild = oldAttrs.depsBuildBuild ++ [ pkg-config ];
24 nativeBuildInputs = oldAttrs.nativeBuildInputs ++ [
25 wayland-protocols
26 wayland-scanner
27 ];
28 buildInputs = oldAttrs.buildInputs ++ [
29 wayland
30 wayland-protocols
31 ];
32
33 meta = with lib; {
34 description = "Window switcher, run dialog and dmenu replacement for Wayland";
35 homepage = "https://github.com/lbonn/rofi";
36 license = licenses.mit;
37 mainProgram = "rofi";
38 maintainers = with maintainers; [ bew ];
39 platforms = with platforms; linux;
40 };
41})