nixpkgs/pkgs/os-specific/darwin/reattach-to-user-namespace/default.nix
Alexis Hildebrandt 755b915a15 treewide: Remove indefinite article from meta.description
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*"[Aa]n?' pkgs \
  | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*")[Aa]n? (.)/\1\U\2/'
2024-06-09 23:07:45 +02:00

31 lines
906 B
Nix

{ lib, stdenv, fetchFromGitHub }:
stdenv.mkDerivation rec {
pname = "reattach-to-user-namespace";
version = "2.9";
src = fetchFromGitHub {
owner = "ChrisJohnsen";
repo = "tmux-MacOSX-pasteboard";
rev = "v${version}";
sha256 = "1qgimh58hcx5f646gj2kpd36ayvrdkw616ad8cb3lcm11kg0ag79";
};
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.";
installPhase = ''
mkdir -p $out/bin
cp reattach-to-user-namespace $out/bin/
'';
meta = with lib; {
description = "Wrapper that provides access to the Mac OS X pasteboard service";
license = licenses.bsd2;
maintainers = with maintainers; [ lnl7 ];
platforms = platforms.darwin;
};
}