about summary refs log tree commit diff
path: root/nixpkgs/pkgs/applications/window-managers/cwm
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/pkgs/applications/window-managers/cwm')
-rw-r--r--nixpkgs/pkgs/applications/window-managers/cwm/default.nix27
1 files changed, 27 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/applications/window-managers/cwm/default.nix b/nixpkgs/pkgs/applications/window-managers/cwm/default.nix
new file mode 100644
index 000000000000..37abe5c154ee
--- /dev/null
+++ b/nixpkgs/pkgs/applications/window-managers/cwm/default.nix
@@ -0,0 +1,27 @@
+{ lib, stdenv, fetchFromGitHub, libX11, libXinerama, libXrandr, libXft, bison, pkg-config }:
+
+stdenv.mkDerivation rec {
+
+  pname = "cwm";
+  version = "7.1";
+
+  src = fetchFromGitHub {
+    owner = "leahneukirchen";
+    repo = pname;
+    rev = "v${version}";
+    sha256 = "sha256-lkjsxGMXOrnu4cUiV/TO7yzd9FzM297MhaFKauqmiHo=";
+  };
+
+  nativeBuildInputs = [ pkg-config ];
+  buildInputs = [ libX11 libXinerama libXrandr libXft bison ];
+
+  prePatch = ''sed -i "s@/usr/local@$out@" Makefile'';
+
+  meta = with lib; {
+    description = "A lightweight and efficient window manager for X11";
+    homepage    = "https://github.com/leahneukirchen/cwm";
+    maintainers = with maintainers; [ _0x4A6F mkf ];
+    license     = licenses.isc;
+    platforms   = platforms.linux;
+  };
+}