2021-01-11 08:54:33 +01:00
|
|
|
{ lib, stdenv, fetchzip, Carbon, Cocoa, ScriptingBridge }:
|
2019-05-12 16:33:24 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "chunkwm";
|
2019-05-12 16:33:24 +02:00
|
|
|
version = "0.4.9";
|
|
|
|
src = fetchzip {
|
2021-04-17 17:59:08 +02:00
|
|
|
url = "https://github.com/koekeishiya/chunkwm/archive/v${version}.tar.gz";
|
2019-05-12 16:33:24 +02:00
|
|
|
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
|
|
|
|
'';
|
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2019-05-12 16:33:24 +02:00
|
|
|
description = "Tiling window manager for macOS based on plugin architecture";
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://github.com/koekeishiya/chunkwm";
|
2019-05-12 16:33:24 +02:00
|
|
|
platforms = platforms.darwin;
|
|
|
|
maintainers = with maintainers; [ lnl7 ];
|
|
|
|
license = licenses.mit;
|
|
|
|
};
|
|
|
|
}
|