nixpkgs/pkgs/by-name/tm/tmate/package.nix
aleksana 571c71e6f7 treewide: migrate packages to pkgs/by-name, take 1
We are migrating packages that meet below requirements:

1. using `callPackage`
2. called path is a directory
3. overriding set is empty (`{ }`)
4. not containing path expressions other than relative path (to
makenixpkgs-vet happy)
5. not referenced by nix files outside of the directory, other
than`pkgs/top-level/all-packages.nix`
6. not referencing nix files outside of the directory
7. not referencing `default.nix` (since it's changed to `package.nix`)
8. `outPath` doesn't change after migration

The tool is here: https://github.com/Aleksanaa/by-name-migrate.
2024-11-09 20:04:51 +08:00

61 lines
1.0 KiB
Nix

{ lib
, stdenv
, fetchFromGitHub
, autoreconfHook
, cmake
, libtool
, pkg-config
, zlib
, openssl
, libevent
, ncurses
, ruby
, msgpack-c
, libssh
}:
stdenv.mkDerivation {
pname = "tmate";
version = "unstable-2022-08-07";
src = fetchFromGitHub {
owner = "tmate-io";
repo = "tmate";
rev = "ac919516f4f1b10ec928e20b3a5034d18f609d68";
sha256 = "sha256-t96gfmAMcsjkGf8pvbEx2fNx4Sj3W6oYoQswB3Dklb8=";
};
postPatch = ''
substituteInPlace configure.ac \
--replace 'msgpack >= 1.1.0' 'msgpack-c >= 1.1.0'
'';
nativeBuildInputs = [
autoreconfHook
cmake
pkg-config
];
buildInputs = [
libtool
zlib
openssl
libevent
ncurses
ruby
msgpack-c
libssh
];
dontUseCmakeConfigure = true;
meta = with lib; {
homepage = "https://tmate.io/";
description = "Instant Terminal Sharing";
license = licenses.mit;
platforms = platforms.unix;
maintainers = with maintainers; [ ck3d ];
mainProgram = "tmate";
};
}