depot/third_party/nixpkgs/pkgs/os-specific/darwin/chunkwm/default.nix
Default email 139d06eab7 Project import generated by Copybara.
GitOrigin-RevId: b2f2d04f01b3de3abad0dd9bc48ad7a3ee32bbc6
2021-04-18 04:13:31 +02:00

36 lines
984 B
Nix

{ lib, stdenv, fetchzip, Carbon, Cocoa, ScriptingBridge }:
stdenv.mkDerivation rec {
pname = "chunkwm";
version = "0.4.9";
src = fetchzip {
url = "https://github.com/koekeishiya/chunkwm/archive/v${version}.tar.gz";
sha256 = "0w8q92q97fdvbwc3qb5w44jn4vi3m65ssdvjp5hh6b7llr17vspl";
};
buildInputs = [ Carbon Cocoa ScriptingBridge ];
outputs = [ "bin" "out" ];
buildPhase = ''
for d in . src/chunkc src/plugins/*; do
pushd $d
buildPhase
popd
done
'';
installPhase = ''
mkdir -p $bin/bin $out/bin $out/lib/chunkwm/plugins
cp src/chunkc/bin/chunkc $bin/bin/chunkc
cp bin/chunkwm $out/bin
cp plugins/*.so $out/lib/chunkwm/plugins
'';
meta = with lib; {
description = "Tiling window manager for macOS based on plugin architecture";
homepage = "https://github.com/koekeishiya/chunkwm";
platforms = platforms.darwin;
maintainers = with maintainers; [ lnl7 ];
license = licenses.mit;
};
}