2021-04-05 15:23:46 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, libX11, libXinerama, libXrandr, libXft, bison, pkg-config }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
|
|
|
|
pname = "cwm";
|
2023-11-16 04:20:00 +00:00
|
|
|
version = "7.4";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "leahneukirchen";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2023-11-16 04:20:00 +00:00
|
|
|
hash = "sha256-L3u4mH2UH2pTHhSPVr5dUi94b9DheslkIWL6EgQ05yA=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2023-07-15 17:15:38 +00:00
|
|
|
strictDeps = true;
|
|
|
|
|
|
|
|
nativeBuildInputs = [ pkg-config bison ];
|
|
|
|
buildInputs = [ libX11 libXinerama libXrandr libXft ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
prePatch = ''sed -i "s@/usr/local@$out@" Makefile'';
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Lightweight and efficient window manager for X11";
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://github.com/leahneukirchen/cwm";
|
2020-08-20 17:08:02 +00:00
|
|
|
maintainers = with maintainers; [ _0x4A6F mkf ];
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.isc;
|
|
|
|
platforms = platforms.linux;
|
2024-01-02 11:29:13 +00:00
|
|
|
mainProgram = "cwm";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|