2021-01-11 08:54:33 +01:00
|
|
|
{ lib, stdenv, fetchFromGitHub }:
|
2015-08-26 04:03:49 +02:00
|
|
|
|
2017-09-26 00:57:48 +02:00
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "reattach-to-user-namespace";
|
2020-11-17 05:32:28 +01:00
|
|
|
version = "2.9";
|
2016-12-05 01:36:54 +01:00
|
|
|
|
2020-11-17 05:32:28 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "ChrisJohnsen";
|
|
|
|
repo = "tmux-MacOSX-pasteboard";
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "1qgimh58hcx5f646gj2kpd36ayvrdkw616ad8cb3lcm11kg0ag79";
|
2015-08-26 04:03:49 +02:00
|
|
|
};
|
2016-12-05 01:36:54 +01:00
|
|
|
|
2021-06-15 20:30:21 +02:00
|
|
|
buildFlags =
|
|
|
|
if stdenv.hostPlatform.system == "x86_64-darwin" then [ "ARCHES=x86_64" ]
|
|
|
|
else if stdenv.hostPlatform.system == "aarch64-darwin" then [ "ARCHES=arm64" ]
|
|
|
|
else throw "reattach-to-user-namespace isn't being built for ${stdenv.hostPlatform.system} yet.";
|
2016-12-05 01:36:54 +01:00
|
|
|
|
2015-08-26 04:03:49 +02:00
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/bin
|
|
|
|
cp reattach-to-user-namespace $out/bin/
|
|
|
|
'';
|
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2017-09-26 00:57:48 +02:00
|
|
|
description = "A wrapper that provides access to the Mac OS X pasteboard service";
|
|
|
|
license = licenses.bsd2;
|
|
|
|
maintainers = with maintainers; [ lnl7 ];
|
|
|
|
platforms = platforms.darwin;
|
2016-12-05 01:36:54 +01:00
|
|
|
};
|
|
|
|
}
|