40 lines
728 B
Nix
40 lines
728 B
Nix
{ 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 = "b07a6b2368198b9102ee1814ea01c93c9dfa478f";
|
|
sha256 = "sha256-FWuup2N+cyJErAA0n6wuv1Ru28/yiJETjEjqKe44yDE=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
pkg-config
|
|
];
|
|
|
|
buildInputs = [
|
|
libX11
|
|
libXft
|
|
libXinerama
|
|
];
|
|
|
|
buildPhase = ''
|
|
make
|
|
'';
|
|
|
|
installPhase = ''
|
|
mkdir -p $out/bin
|
|
mv dmenu dmenu_run dmenu_path stest $out/bin
|
|
'';
|
|
|
|
}
|