1 { lib, stdenv, fetchzip }:
3 stdenv.mkDerivation rec {
9 url = "https://github.com/koekeishiya/kwm/releases/download/v${version}/Kwm-${version}.zip";
10 sha256 = "1ld1vblg3hmc6lpb8p2ljvisbkijjkijf4y87z5y1ia4k8pk7mxb";
13 # TODO: Build this properly once we have swiftc.
19 cp kwm overlaylib.dylib $out
21 mkdir -p $out/Library/LaunchDaemons
22 cp ${./org.nixos.kwm.plist} $out/Library/LaunchDaemons/org.nixos.kwm.plist
23 substituteInPlace $out/Library/LaunchDaemons/org.nixos.kwm.plist --subst-var out
27 description = "Tiling window manager with focus follows mouse for OSX";
28 homepage = "https://github.com/koekeishiya/kwm";
29 downloadPage = "https://github.com/koekeishiya/kwm/releases";
30 platforms = platforms.darwin;
31 maintainers = with maintainers; [ lnl7 ];
33 license = licenses.mit;