47 lines
926 B
Nix
47 lines
926 B
Nix
{ stdenv, lib, pkgs, ... }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "dmenu-cust";
|
|
version = "5.3-gregory";
|
|
|
|
#nv1 release
|
|
#src = builtins.fetchTarball {
|
|
# url = "https://yyyi.ru/suckless-desktop/";
|
|
# sha256 = "04098rrybliw3n4q7wvl78vca1v5nzs2d6r6i89labbp48rap48x";
|
|
#};
|
|
|
|
src = ./dmenu;
|
|
|
|
buildPhase = "make all";
|
|
|
|
installPhase = ''
|
|
DESTDIR=$out/ make PREFIX=/ install
|
|
'';
|
|
|
|
buildInputs = with pkgs; [
|
|
xorg.libX11
|
|
xorg.libXft
|
|
xorg.libXrender
|
|
fontconfig
|
|
freetype
|
|
xorg.libXinerama
|
|
python311
|
|
];
|
|
|
|
nativeBuildInputs = with pkgs; [
|
|
gnumake
|
|
pkg-config
|
|
];
|
|
|
|
meta = {
|
|
description = "Literally coolest program in the world";
|
|
platforms = lib.platforms.linux;
|
|
};
|
|
|
|
postPatch = ''
|
|
substituteInPlace config.mk \
|
|
--replace "/usr/local" "$out"
|
|
'';
|
|
}
|
|
|