1 { lib, stdenv, fetchFromGitHub }:
3 stdenv.mkDerivation rec {
4 pname = "reattach-to-user-namespace";
7 src = fetchFromGitHub {
8 owner = "ChrisJohnsen";
9 repo = "tmux-MacOSX-pasteboard";
11 sha256 = "1qgimh58hcx5f646gj2kpd36ayvrdkw616ad8cb3lcm11kg0ag79";
15 if stdenv.hostPlatform.system == "x86_64-darwin" then [ "ARCHES=x86_64" ]
16 else if stdenv.hostPlatform.system == "aarch64-darwin" then [ "ARCHES=arm64" ]
17 else throw "reattach-to-user-namespace isn't being built for ${stdenv.hostPlatform.system} yet.";
21 cp reattach-to-user-namespace $out/bin/
25 description = "Wrapper that provides access to the Mac OS X pasteboard service";
26 license = licenses.bsd2;
27 maintainers = with maintainers; [ lnl7 ];
28 platforms = platforms.darwin;