diff --git a/pkgs/applications/misc/dmenu/default.nix b/pkgs/applications/misc/dmenu/default.nix index 1ba3ee5268f7..ac1852cd893a 100644 --- a/pkgs/applications/misc/dmenu/default.nix +++ b/pkgs/applications/misc/dmenu/default.nix @@ -1,35 +1,28 @@ -{stdenv, fetchurl, libX11, libXinerama, enableXft, libXft, zlib}: - -with stdenv.lib; +{stdenv, fetchurl, libX11, libXinerama, libXft, zlib}: stdenv.mkDerivation rec { - name = "dmenu-4.5"; + name = "dmenu-4.6"; src = fetchurl { url = "http://dl.suckless.org/tools/${name}.tar.gz"; - sha256 = "0l58jpxrr80fmyw5pgw5alm5qry49aw6y049745wl991v2cdcb08"; + sha256 = "1cwnvamqqlgczvd5dv5rsgqbhv8kp0ddjnhmavb3q732i8028yja"; }; - xftPatch = fetchurl { - url = "http://tools.suckless.org/dmenu/patches/${name}-xft.diff"; - sha256 = "efb4095d65e5e86f9dde97294732174409c24f319bdd4824cc22fa1404972b4f"; - }; - - buildInputs = [ libX11 libXinerama ] ++ optionals enableXft [zlib libXft]; - - patches = optional enableXft xftPatch; + buildInputs = [ libX11 libXinerama zlib libXft ]; postPatch = '' sed -ri -e 's!\<(dmenu|stest)\>!'"$out/bin"'/&!g' dmenu_run ''; - preConfigure = [ ''sed -i "s@PREFIX = /usr/local@PREFIX = $out@g" config.mk'' ]; + preConfigure = '' + sed -i "s@PREFIX = /usr/local@PREFIX = $out@g" config.mk + ''; - meta = { - description = "a generic, highly customizable, and efficient menu for the X Window System"; + meta = with stdenv.lib; { + 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; [viric]; - platforms = with stdenv.lib.platforms; all; + license = licenses.mit; + maintainers = with maintainers; [ viric pSub ]; + platforms = platforms.all; }; } diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 683fcab8adbf..b0d5f22124f4 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -11215,9 +11215,7 @@ let djview = callPackage ../applications/graphics/djview { }; djview4 = pkgs.djview; - dmenu = callPackage ../applications/misc/dmenu { - enableXft = true; - }; + dmenu = callPackage ../applications/misc/dmenu { }; dmenu2 = callPackage ../applications/misc/dmenu2 { };