2021-01-17 00:15:33 +00:00
|
|
|
{ lib, stdenv, fetchurl
|
2020-05-15 21:57:56 +00:00
|
|
|
, lesstif
|
|
|
|
, libX11, libXext, libXmu, libXinerama }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
|
|
|
|
pname = "yeahwm";
|
|
|
|
version = "0.3.5";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://phrat.de/${pname}_${version}.tar.gz";
|
|
|
|
sha256 = "01gfzjvb40n16m2ja4238nk08k4l203y6a61cydqvf68924fjb69";
|
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ lesstif libX11 libXext libXinerama libXmu ];
|
|
|
|
|
|
|
|
dontConfigure = true;
|
|
|
|
|
|
|
|
preBuild = ''
|
|
|
|
makeFlagsArray+=( CC="${stdenv.cc}/bin/cc" \
|
|
|
|
XROOT="${libX11}" \
|
|
|
|
INCLUDES="-I${libX11.dev}/include -I${libXext.dev}/include -I${libXinerama.dev}/include -I${libXmu.dev}/include" \
|
|
|
|
LDPATH="-L${libX11}/lib -L${libXext}/lib -L${libXinerama}/lib -L${libXmu}/lib" \
|
|
|
|
prefix="${placeholder "out"}" )
|
|
|
|
'';
|
|
|
|
|
2022-06-16 17:23:12 +00:00
|
|
|
# Workaround build failure on -fno-common toolchains like upstream
|
|
|
|
# gcc-10. Otherwise build fails as:
|
|
|
|
# ld: screen.o:(.bss+0x40): multiple definition of `fg'; client.o:(.bss+0x40): first defined here
|
2023-03-04 12:14:45 +00:00
|
|
|
env.NIX_CFLAGS_COMPILE = "-fcommon";
|
2022-06-16 17:23:12 +00:00
|
|
|
|
2020-05-15 21:57:56 +00:00
|
|
|
postInstall = ''
|
|
|
|
gzip -9 --stdout yeahwm.1 > yeahwm.1.gz
|
|
|
|
install -m644 yeahwm.1.gz ${placeholder "out"}/share/man/man1/
|
|
|
|
'';
|
|
|
|
|
2021-01-17 00:15:33 +00:00
|
|
|
meta = with lib;{
|
2020-05-15 21:57:56 +00:00
|
|
|
description = "An X window manager based on evilwm and aewm";
|
|
|
|
longDescription = ''
|
|
|
|
YeahWM is a h* window manager for X based on evilwm and aewm.
|
|
|
|
|
|
|
|
Features
|
|
|
|
- Sloppy Focus.
|
|
|
|
- BeOS-like tabbed titles, which can be repositioned.
|
|
|
|
- Support for Xinerama.
|
|
|
|
- Simple Appearance.
|
|
|
|
- Good keyboard control.
|
|
|
|
- Creative usage of the mouse.
|
|
|
|
- Respects aspect size hints.
|
|
|
|
- Solid resize and move operations.
|
|
|
|
- Virtual Desktops.
|
|
|
|
- "Magic" Screen edges for desktop switching.
|
|
|
|
- Snapping to other windows and screen borders when moving windows.
|
|
|
|
- Small binary size(ca. 23kb).
|
|
|
|
- Little resource usage.
|
|
|
|
- It's slick.
|
|
|
|
'';
|
|
|
|
homepage = "http://phrat.de/index.html";
|
|
|
|
license = licenses.isc;
|
|
|
|
maintainers = [ maintainers.AndersonTorres ];
|
|
|
|
platforms = libX11.meta.platforms;
|
|
|
|
};
|
|
|
|
}
|