2021-12-06 16:07:01 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchurl
|
|
|
|
, libX11
|
|
|
|
, libXext
|
|
|
|
, libXrandr
|
|
|
|
, libXrender
|
|
|
|
, xorgproto
|
|
|
|
, patches ? [ ]
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2021-12-06 16:07:01 +00:00
|
|
|
pname = "evilwm";
|
2024-02-07 01:22:34 +00:00
|
|
|
version = "1.4.2";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2021-12-06 16:07:01 +00:00
|
|
|
url = "http://www.6809.org.uk/evilwm/evilwm-${version}.tar.gz";
|
2024-02-07 01:22:34 +00:00
|
|
|
sha256 = "sha256-QhLW2QywBbLMiIFLyFN3NrSVCrWCZLu2W4gHrGO9xLk=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-12-06 16:07:01 +00:00
|
|
|
buildInputs = [
|
|
|
|
libX11
|
|
|
|
libXext
|
|
|
|
libXrandr
|
|
|
|
libXrender
|
|
|
|
xorgproto
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-12-06 16:07:01 +00:00
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace ./Makefile \
|
|
|
|
--replace /usr $out \
|
|
|
|
--replace "CC = gcc" "#CC = gcc"
|
|
|
|
'';
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
# Allow users set their own list of patches
|
|
|
|
inherit patches;
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
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 = "http://www.6809.org.uk/evilwm/";
|
|
|
|
free = true;
|
2021-12-06 16:07:01 +00:00
|
|
|
}; # like BSD/MIT, but Share-Alike'y; See README.
|
2020-04-24 23:36:52 +00:00
|
|
|
maintainers = with maintainers; [ amiloradovsky ];
|
|
|
|
platforms = platforms.all;
|
2024-01-02 11:29:13 +00:00
|
|
|
mainProgram = "evilwm";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|