2021-03-14 17:50:12 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, libX11, libXinerama, libXrandr, libXft, bison, pkg-config }:
|
2015-12-04 21:57:16 +00:00
|
|
|
|
2019-09-29 11:16:38 +01:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
|
|
|
|
pname = "cwm";
|
2022-07-07 22:45:14 +01:00
|
|
|
version = "7.1";
|
2015-12-04 21:57:16 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2019-09-29 11:16:38 +01:00
|
|
|
owner = "leahneukirchen";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2022-07-07 22:45:14 +01:00
|
|
|
sha256 = "sha256-lkjsxGMXOrnu4cUiV/TO7yzd9FzM297MhaFKauqmiHo=";
|
2015-12-04 21:57:16 +00:00
|
|
|
};
|
|
|
|
|
2021-01-19 06:50:56 +00:00
|
|
|
nativeBuildInputs = [ pkg-config ];
|
2021-03-14 17:50:12 +00:00
|
|
|
buildInputs = [ libX11 libXinerama libXrandr libXft bison ];
|
2015-12-04 21:57:16 +00:00
|
|
|
|
|
|
|
prePatch = ''sed -i "s@/usr/local@$out@" Makefile'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2015-12-04 21:57:16 +00:00
|
|
|
description = "A lightweight and efficient window manager for X11";
|
2019-09-29 12:56:54 +01:00
|
|
|
homepage = "https://github.com/leahneukirchen/cwm";
|
2020-07-29 11:49:07 +01:00
|
|
|
maintainers = with maintainers; [ _0x4A6F mkf ];
|
2019-09-29 12:56:54 +01:00
|
|
|
license = licenses.isc;
|
|
|
|
platforms = platforms.linux;
|
2015-12-04 21:57:16 +00:00
|
|
|
};
|
|
|
|
}
|