2024-06-14 12:18:25 +01:00
|
|
|
{ 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";
|
2024-06-15 23:48:13 +01:00
|
|
|
rev = "aaa18d5eb6c7a935766af489a3e3f3136278d3cc";
|
|
|
|
sha256 = "sha256-khcBW6oVbvagLa2dfbteCJfzepbv4Y6GoUauYXHNhQo=";
|
2024-06-14 12:18:25 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
pkg-config
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
libX11
|
|
|
|
libXft
|
|
|
|
libXinerama
|
|
|
|
];
|
|
|
|
|
|
|
|
buildPhase = ''
|
|
|
|
make
|
|
|
|
'';
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/bin
|
|
|
|
mv dmenu dmenu_run dmenu_path stest $out/bin
|
|
|
|
'';
|
|
|
|
|
|
|
|
}
|