nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at devShellTools-shell 51 lines 865 B view raw
1{ 2 lib, 3 stdenv, 4 fetchFromGitHub, 5 libX11, 6 libXinerama, 7 libXrandr, 8 libXft, 9 bison, 10 pkg-config, 11}: 12 13stdenv.mkDerivation rec { 14 15 pname = "cwm"; 16 version = "7.4"; 17 18 src = fetchFromGitHub { 19 owner = "leahneukirchen"; 20 repo = "cwm"; 21 rev = "v${version}"; 22 hash = "sha256-L3u4mH2UH2pTHhSPVr5dUi94b9DheslkIWL6EgQ05yA="; 23 }; 24 25 strictDeps = true; 26 27 nativeBuildInputs = [ 28 pkg-config 29 bison 30 ]; 31 buildInputs = [ 32 libX11 33 libXinerama 34 libXrandr 35 libXft 36 ]; 37 38 prePatch = ''sed -i "s@/usr/local@$out@" Makefile''; 39 40 meta = with lib; { 41 description = "Lightweight and efficient window manager for X11"; 42 homepage = "https://github.com/leahneukirchen/cwm"; 43 maintainers = with maintainers; [ 44 _0x4A6F 45 mkf 46 ]; 47 license = licenses.isc; 48 platforms = platforms.linux; 49 mainProgram = "cwm"; 50 }; 51}