depot/third_party/nixpkgs/pkgs/by-name/tu/tuxmux/package.nix
Default email 5e7c2d6cef Project import generated by Copybara.
GitOrigin-RevId: f99e5f03cc0aa231ab5950a15ed02afec45ed51a
2023-10-09 21:29:22 +02:00

41 lines
1,007 B
Nix

{ lib
, stdenv
, fetchFromGitHub
, rustPlatform
, openssl
, pkg-config
, installShellFiles
, darwin
}:
rustPlatform.buildRustPackage rec {
pname = "tuxmux";
version = "0.1.0";
src = fetchFromGitHub {
owner = "edeneast";
repo = pname;
rev = "v${version}";
hash = "sha256-QySDC/aEU9Fo0UbRUNvgBQLfESYzENGfS8Tl/ycn1YY=";
};
cargoHash = "sha256-MlLTaN+KMeF0A1hh0oujLYWqjwrbmoNzoRoXjeCUf7I=";
buildInputs = [ openssl ] ++ (lib.optionals stdenv.isDarwin [ darwin.apple_sdk.frameworks.Security ]);
nativeBuildInputs = [ pkg-config installShellFiles ];
postInstall = ''
installShellCompletion $releaseDir/../completions/tm.{bash,fish}
installShellCompletion --zsh $releaseDir/../completions/_tm
installManPage $releaseDir/../man/*
'';
meta = with lib; {
description = "Tmux session manager";
homepage = "https://github.com/edeneast/tuxmux";
license = licenses.apsl20;
maintainers = with maintainers; [ edeneast ];
mainProgram = "tm";
};
}