nixpkgs-suyu/pkgs/applications/window-managers/dwm/default.nix

31 lines
728 B
Nix
Raw Normal View History

2015-11-11 17:09:45 +01:00
{stdenv, fetchurl, libX11, libXinerama, libXft, patches ? []}:
let
2015-11-11 17:09:45 +01:00
name = "dwm-6.1";
in
stdenv.mkDerivation {
inherit name;
src = fetchurl {
url = "http://dl.suckless.org/dwm/${name}.tar.gz";
2015-11-11 17:09:45 +01:00
sha256 = "1zkmwb6df6m254shx06ly90c0q4jl70skk1pvkixpb7hcxhwbxn2";
};
2015-11-11 17:09:45 +01:00
buildInputs = [ libX11 libXinerama libXft ];
prePatch = ''sed -i "s@/usr/local@$out@" config.mk'';
# Allow users set their own list of patches
inherit patches;
buildPhase = " make ";
meta = {
homepage = http://suckless.org/;
description = "Dynamic window manager for X";
license = stdenv.lib.licenses.mit;
maintainers = with stdenv.lib.maintainers; [viric];
platforms = with stdenv.lib.platforms; all;
};
}