7427b58266
(cherry picked from commit 22f212537f475565f67a07b869f9cceea2022191)
31 lines
730 B
Nix
31 lines
730 B
Nix
{stdenv, fetchurl, libX11, libXinerama, libXft, patches ? []}:
|
|
|
|
let
|
|
name = "dwm-6.1";
|
|
in
|
|
stdenv.mkDerivation {
|
|
inherit name;
|
|
|
|
src = fetchurl {
|
|
url = "https://dl.suckless.org/dwm/${name}.tar.gz";
|
|
sha256 = "1zkmwb6df6m254shx06ly90c0q4jl70skk1pvkixpb7hcxhwbxn2";
|
|
};
|
|
|
|
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 = https://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;
|
|
};
|
|
}
|