diff options
| author | EdenEast <edenofest@gmail.com> | 2023-09-29 19:57:27 -0400 |
|---|---|---|
| committer | Anderson Torres <torres.anderson.85@protonmail.com> | 2023-09-30 17:36:07 -0300 |
| commit | 7cdd86dc087553a9eb5013b19bd2c4e242e30bad (patch) | |
| tree | f67537704c8fad4a961a302131ea5abc1daa8203 | |
| parent | maintainers: add edeneast (diff) | |
| download | nixpkgs-7cdd86dc087553a9eb5013b19bd2c4e242e30bad.tar.gz | |
tuxmux: init at version 0.1.0
Source: https://github.com/EdenEast/tuxmux
Version: 0.1.0
| -rw-r--r-- | pkgs/by-name/tu/tuxmux/package.nix | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/pkgs/by-name/tu/tuxmux/package.nix b/pkgs/by-name/tu/tuxmux/package.nix new file mode 100644 index 000000000000..9714c63696ab --- /dev/null +++ b/pkgs/by-name/tu/tuxmux/package.nix @@ -0,0 +1,41 @@ +{ 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"; + }; +} |
