add custom fork of dmenu

This commit is contained in:
stupidcomputer 2025-01-02 19:21:52 -06:00
parent 27ce103377
commit c420cb230d
6 changed files with 28 additions and 2 deletions

3
.gitmodules vendored
View File

@ -1,3 +1,6 @@
[submodule "builds/dwm"]
path = builds/dwm
url = https://git.beepboop.systems/stupidcomputer/dwm
[submodule "builds/dmenu"]
path = builds/dmenu
url = https://git.suckless.org/dmenu

View File

@ -1 +1 @@
sudo nixos-rebuild --flake . switch --impure -I nixos-config=./
sudo nixos-rebuild --flake .?submodules=1 switch --impure -I nixos-config=./

1
builds/dmenu Submodule

@ -0,0 +1 @@
Subproject commit 07d57cf2f5c76f50debc76cf50267b2e61a885f8

21
builds/dmenu.nix Normal file
View File

@ -0,0 +1,21 @@
{ lib, stdenv, fetchurl, libX11, libXinerama, libXft, zlib }:
stdenv.mkDerivation rec {
pname = "dmenu";
version = "5.2";
src = ./dmenu;
buildInputs = [ libX11 libXinerama zlib libXft ];
postPatch = ''
sed -ri -e 's!\<(dmenu|dmenu_path|stest)\>!'"$out/bin"'/&!g' dmenu_run
sed -ri -e 's!\<stest\>!'"$out/bin"'/&!g' dmenu_path
'';
preConfigure = ''
sed -i "s@PREFIX = /usr/local@PREFIX = $out@g" config.mk
'';
makeFlags = [ "CC:=$(CC)" ];
}

View File

@ -23,11 +23,11 @@
brave
qutebrowser
(callPackage ../builds/st.nix { aristotle = true; })
(callPackage ../builds/dmenu.nix {})
(callPackage ../builds/utils.nix {})
(callPackage ../builds/rebuild.nix {})
(callPackage ../builds/dwm.nix {})
(callPackage ../builds/sssg.nix {})
dmenu
pinentry-qt
# tui/cli programs

View File

@ -83,6 +83,7 @@
# custom builds
(pkgs.callPackage ../builds/st.nix { lightMode = false; })
(pkgs.callPackage ../builds/dmenu.nix {})
(pkgs.callPackage ../builds/utils.nix {})
(pkgs.callPackage ../builds/statusbar {})
];