mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-29 06:45:54 +03:00
fc2580ad87
I don't think it is a good idea to hardcode this patch in nixpkgs as it is likely that a patch provided by a user will conflict with this patch. This is for instance the case with the patch "single_tagset" (http://dwm.suckless.org/patches/single_tagset).
31 lines
693 B
Nix
31 lines
693 B
Nix
{stdenv, fetchurl, libX11, libXinerama, patches ? []}:
|
|
|
|
let
|
|
name = "dwm-6.0";
|
|
in
|
|
stdenv.mkDerivation {
|
|
inherit name;
|
|
|
|
src = fetchurl {
|
|
url = "http://dl.suckless.org/dwm/${name}.tar.gz";
|
|
sha256 = "0mpbivy9j80l1jqq4bd4g4z8s5c54fxrjj44avmfwncjwqylifdj";
|
|
};
|
|
|
|
buildInputs = [ libX11 libXinerama ];
|
|
|
|
prePatch = ''sed -i "s@/usr/local@$out@" config.mk'';
|
|
|
|
# Allow users set their own list of patches
|
|
inherit patches;
|
|
|
|
buildPhase = " make ";
|
|
|
|
meta = {
|
|
homepage = "www.suckless.org";
|
|
description = "Dynamic window manager for X";
|
|
license = "MIT";
|
|
maintainers = with stdenv.lib.maintainers; [viric];
|
|
platforms = with stdenv.lib.platforms; all;
|
|
};
|
|
}
|