added dmenu and moved st to x11

This commit is contained in:
Sam 2024-06-14 12:18:25 +01:00
parent 658744d33c
commit c226add411
4 changed files with 42 additions and 1 deletions

View File

@ -8,7 +8,6 @@
# Global packages for desktop environments # Global packages for desktop environments
home.packages = [ home.packages = [
pkgs.alacritty pkgs.alacritty
pkgs.st
pkgs.libnotify pkgs.libnotify
pkgs.zathura pkgs.zathura
pkgs.xfce.thunar pkgs.xfce.thunar

View File

@ -7,5 +7,7 @@
home.packages = [ home.packages = [
pkgs.dunst pkgs.dunst
pkgs.flameshot pkgs.flameshot
pkgs.st
pkgs.dmenu
]; ];
} }

View File

@ -4,4 +4,5 @@ pkgs: {
sddm-theme = pkgs.callPackage ./sddm-theme { }; sddm-theme = pkgs.callPackage ./sddm-theme { };
st = pkgs.callPackage ./st { }; st = pkgs.callPackage ./st { };
dwmblocks = pkgs.callPackage ./dwmblocks { }; dwmblocks = pkgs.callPackage ./dwmblocks { };
dmenu = pkgs.callPackage ./dmenu { };
} }

39
pkgs/dmenu/default.nix Normal file
View File

@ -0,0 +1,39 @@
{ pkgs ? import <nixpkgs> { }
, fetchFromGitea ? pkgs.fetchFromGitea
, pkg-config ? pkgs.pkg-config
, libX11 ? pkgs.xorg.libX11
, libXft ? pkgs.xorg.libXft
, libXinerama ? pkgs.xorg.libXinerama
}:
pkgs.stdenv.mkDerivation {
pname = "dmenu";
name = "dmenu";
src = fetchFromGitea {
domain = "git.bitlab21.com";
owner = "sam";
repo = "dmenu";
rev = "deb38655db2ddb340258381f3a0a59e2d19207f1";
sha256 = "sha256-Wm5mIw4r3lPZDXlyO26Jr993Rq7dxMwBxeWnJ4UzQ1s=";
};
nativeBuildInputs = [
pkg-config
];
buildInputs = [
libX11
libXft
libXinerama
];
buildPhase = ''
make
'';
installPhase = ''
mkdir -p $out/bin
mv dmenu dmenu_run dmenu_path stest $out/bin
'';
}