Files
2026-07-05 13:46:44 -04:00

53 lines
1.0 KiB
Nix

{
lib,
stdenv,
fetchurl,
libx11,
libxext,
libxrandr,
libxrender,
xorgproto,
patches ? [ ],
}:
stdenv.mkDerivation rec {
pname = "evilwm";
version = "1.5";
src = fetchurl {
url = "https://www.6809.org.uk/evilwm/evilwm-${version}.tar.gz";
sha256 = "sha256-YQSFJBPm1QZpNh3K3aWiXTnisrDJWmOEAiyQWVeidA8=";
};
buildInputs = [
libx11
libxext
libxrandr
libxrender
xorgproto
];
postPatch = ''
substituteInPlace ./Makefile \
--replace /usr $out \
--replace "CC = gcc" "#CC = gcc"
'';
# Allow users set their own list of patches
inherit patches;
meta = {
homepage = "http://www.6809.org.uk/evilwm/";
description = "Minimalist window manager for the X Window System";
license = {
shortName = "evilwm";
fullName = "Custom, inherited from aewm and 9wm";
url = "https://www.6809.org.uk/evilwm/";
free = true;
}; # like BSD/MIT, but Share-Alike'y; See README.
maintainers = [ ];
platforms = lib.platforms.all;
mainProgram = "evilwm";
};
}