summary refs log tree commit diff
path: root/pkgs/os-specific/darwin/osxsnarf/default.nix
blob: d9a0de6c7f16e92b42103eb7e229b11fcd80c484 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
{ stdenv, lib, fetchFromGitHub, plan9port, darwin, ... }:

stdenv.mkDerivation rec {
  pname = "osxsnarf";
  version = "0.1.0";

  src = fetchFromGitHub {
    owner = "eraserhd";
    repo = "osxsnarf";
    rev = "v${version}";
    sha256 = "1vpg39mpc5avnv1j0yfx0x2ncvv38slmm83zv6nmm7alfwfjr2ss";
  };

  buildInputs = [ plan9port darwin.apple_sdk.frameworks.Carbon ];
  makeFlags = [ "prefix=${placeholder "out"}" ];

  meta = with lib; {
    description = "A Plan 9-inspired way to share your OS X clipboard.";
    homepage = "https://github.com/eraserhd/osxsnarf";
    license = licenses.unlicense;
    platforms = platforms.darwin;
    maintainers = [ maintainers.eraserhd ];
  };
}