bcb2f287e1
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
30 lines
811 B
Nix
30 lines
811 B
Nix
{ lib, stdenv, fetchFromGitHub, libX11, libXinerama, libXrandr, libXft, bison, pkg-config }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "cwm";
|
|
version = "7.4";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "leahneukirchen";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
hash = "sha256-L3u4mH2UH2pTHhSPVr5dUi94b9DheslkIWL6EgQ05yA=";
|
|
};
|
|
|
|
strictDeps = true;
|
|
|
|
nativeBuildInputs = [ pkg-config bison ];
|
|
buildInputs = [ libX11 libXinerama libXrandr libXft ];
|
|
|
|
prePatch = ''sed -i "s@/usr/local@$out@" Makefile'';
|
|
|
|
meta = with lib; {
|
|
description = "Lightweight and efficient window manager for X11";
|
|
homepage = "https://github.com/leahneukirchen/cwm";
|
|
maintainers = with maintainers; [ _0x4A6F mkf ];
|
|
license = licenses.isc;
|
|
platforms = platforms.linux;
|
|
mainProgram = "cwm";
|
|
};
|
|
}
|