mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-30 09:31:01 +00:00
bd01fad0ed
In line with the Nixpkgs manual. A mechanical change, done with this command: find pkgs -name "*.nix" | \ while read f; do \ sed -e 's/description\s*=\s*"\([a-z]\)/description = "\u\1/' -i "$f"; \ done I manually skipped some: * Descriptions starting with an abbreviation, a user name or package name * Frequently generated expressions (haskell-packages.nix)
35 lines
1.1 KiB
Nix
35 lines
1.1 KiB
Nix
{stdenv, fetchurl #, libX11, libXinerama, enableXft, libXft, zlib
|
|
, swc, wld, wayland, libxkbcommon, pixman, fontconfig
|
|
}:
|
|
|
|
with stdenv.lib;
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "dmenu-wayland-${version}";
|
|
version = "git-2014-11-02";
|
|
rev = "6e08b77428cc3c406ed2e90d4cae6c41df76341e";
|
|
|
|
src = fetchurl {
|
|
url = "https://github.com/michaelforney/dmenu/archive/${rev}.tar.gz";
|
|
sha256 = "d0f73e442baf44a93a3b9d41a72e9cfa14f54af6049c90549f516722e3f88019";
|
|
};
|
|
|
|
buildInputs = [ swc wld wayland libxkbcommon pixman fontconfig ];
|
|
|
|
postPatch = ''
|
|
sed -ri -e 's!\<(dmenu|dmenu_path)\>!'"$out/bin"'/&!g' dmenu_run
|
|
'';
|
|
|
|
preConfigure = [
|
|
''sed -i "s@PREFIX = /usr/local@PREFIX = $out@g; s@/usr/share/swc@$(echo "$nativeBuildInputs" | grep -o '[^ ]*-swc-[^ ]*')/share/swc@g" config.mk''
|
|
];
|
|
|
|
meta = {
|
|
description = "A generic, highly customizable, and efficient menu for the X Window System";
|
|
homepage = http://tools.suckless.org/dmenu;
|
|
license = stdenv.lib.licenses.mit;
|
|
maintainers = with stdenv.lib.maintainers; [ ];
|
|
platforms = with stdenv.lib.platforms; all;
|
|
};
|
|
}
|