kwm: init at 1.1.4

+79
+42
pkgs/os-specific/darwin/khd/default.nix
··· 1 + { stdenv, fetchFromGitHub, Carbon, Cocoa }: 2 + 3 + stdenv.mkDerivation rec { 4 + name = "khd-${version}"; 5 + version = "1.1.4"; 6 + 7 + src = fetchFromGitHub { 8 + owner = "koekeishiya"; 9 + repo = "khd"; 10 + rev = "v${version}"; 11 + sha256 = "1klia3fywl0c88zbp5wdn6kxhdwdry1jwmkj27vpv8vzvdfzwfmy"; 12 + }; 13 + 14 + buildInputs = [ Carbon Cocoa ]; 15 + 16 + prePatch = '' 17 + substituteInPlace makefile \ 18 + --replace g++ clang++ 19 + ''; 20 + 21 + buildPhase = '' 22 + make install 23 + ''; 24 + 25 + installPhase = '' 26 + mkdir -p $out/bin 27 + cp bin/khd $out/bin/khd 28 + 29 + mkdir -p $out/Library/LaunchDaemons 30 + cp ${./org.nixos.khd.plist} $out/Library/LaunchDaemons/org.nixos.khd.plist 31 + substituteInPlace $out/Library/LaunchDaemons/org.nixos.khd.plist --subst-var out 32 + ''; 33 + 34 + meta = with stdenv.lib; { 35 + description = "A simple modal hototkey daemon for OSX"; 36 + homepage = https://github.com/koekeishiya/khd; 37 + downloadPage = https://github.com/koekeishiya/khd/releases; 38 + platforms = platforms.darwin; 39 + maintainers = with maintainers; [ lnl7 ]; 40 + license = licenses.mit; 41 + }; 42 + }
+33
pkgs/os-specific/darwin/khd/org.nixos.khd.plist
··· 1 + <?xml version="1.0" encoding="UTF-8"?> 2 + <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> 3 + <plist version="1.0"> 4 + <dict> 5 + <key>Label</key> 6 + <string>org.nixos.khd</string> 7 + <key>ProgramArguments</key> 8 + <array> 9 + <string>@out@/bin/khd</string> 10 + </array> 11 + <key>KeepAlive</key> 12 + <true/> 13 + <key>ProcessType</key> 14 + <string>Interactive</string> 15 + <key>EnvironmentVariables</key> 16 + <dict> 17 + <key>PATH</key> 18 + <string>@out@/bin:/usr/local/bin:/usr/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin</string> 19 + </dict> 20 + <key>Sockets</key> 21 + <dict> 22 + <key>Listeners</key> 23 + <dict> 24 + <key>SockServiceName</key> 25 + <string>3021</string> 26 + <key>SockType</key> 27 + <string>dgram</string> 28 + <key>SockFamily</key> 29 + <string>IPv4</string> 30 + </dict> 31 + </dict> 32 + </dict> 33 + </plist>
+4
pkgs/top-level/all-packages.nix
··· 524 524 525 525 oracle-instantclient = callPackage ../development/libraries/oracle-instantclient { }; 526 526 527 + khd = callPackage ../os-specific/darwin/khd { 528 + inherit (darwin.apple_sdk.frameworks) Carbon Cocoa; 529 + }; 530 + 527 531 reattach-to-user-namespace = callPackage ../os-specific/darwin/reattach-to-user-namespace {}; 528 532 529 533 install_name_tool = callPackage ../os-specific/darwin/install_name_tool { };