about summary refs log tree commit diff
path: root/nixpkgs/pkgs/applications/window-managers/cwm/default.nix
blob: 89187c89d6cab0e2eaa0edefd71dfe128f73d546 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
{ 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";
  };
}