dmenu.nix (1332B)
1 { pkgs 2 , fetchurl 3 , mkSucklessPackage ? pkgs.callPackage ../common/suckless-pkg.nix { } 4 }: 5 6 mkSucklessPackage { 7 name = "dmenu"; 8 src = fetchurl { 9 url = "https://dl.suckless.org/tools/dmenu-5.2.tar.gz"; 10 hash = "sha256-1NTKd7WRQPJyJy21N+BbuRpZFPVoAmUtxX5hp3PUN5I="; 11 }; 12 13 configHeader = ../configs/dmenu.h; 14 extraConfig = { 15 dmenu_path = ../assets/dmenu_path; 16 "theme.h" = pkgs.callPackage ../theme.nix { }; 17 }; 18 19 20 buildInputs = with pkgs; [ 21 xorg.libX11 22 xorg.libXinerama 23 xorg.libXft 24 ]; 25 26 patches = [ 27 ../patches/dmenu-dynamicoptions-5.2.diff 28 29 (fetchurl { 30 url = https://tools.suckless.org/dmenu/patches/bar_height/dmenu-bar-height-5.2.diff; 31 hash = "sha256-YzPGmjkjHNIy4kxsY5GthitR/jKkUE7Pl8I8C/pcSLo="; 32 }) 33 (fetchurl { 34 url = https://tools.suckless.org/dmenu/patches/case-insensitive/dmenu-caseinsensitive-5.0.diff; 35 hash = "sha256-TH/3HoIxkFJ+zqDuqISjQLmgjHlYlZKnopjrmxOoZ0U="; 36 }) 37 (fetchurl { 38 url = https://tools.suckless.org/dmenu/patches/highlight/dmenu-highlight-4.9.diff; 39 hash = "sha256-T0Y3YbFt/yVc7cTimJ8HZNQ9zKvd/G1XhfyimPaLQWA="; 40 }) 41 (fetchurl { 42 url = https://tools.suckless.org/dmenu/patches/numbers/dmenu-numbers-20220512-28fb3e2.diff; 43 hash = "sha256-dXAmbub13PUDjygoxsK0PNnCPc5yNWOIPtrNLvy8fSw="; 44 }) 45 ]; 46 }