nchat: 3.67 → 5.2.11, move to by-name, add luftmensch-luftmensch to maintainers (#345606)
This commit is contained in:
commit
44d822877c
@ -1,45 +0,0 @@
|
||||
{ lib, stdenv, fetchFromGitHub, cmake, gperf
|
||||
, file, ncurses, openssl, readline, sqlite, zlib
|
||||
, AppKit, Cocoa, Foundation
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "nchat";
|
||||
version = "3.67";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "d99kris";
|
||||
repo = "nchat";
|
||||
rev = "v${version}";
|
||||
hash = "sha256-PhvZejtSoDptzoMP5uIe6T0Ws/bQQXVuYH9uoZo3JsI=";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace lib/tgchat/ext/td/CMakeLists.txt \
|
||||
--replace "get_git_head_revision" "#get_git_head_revision"
|
||||
'';
|
||||
|
||||
nativeBuildInputs = [ cmake gperf ];
|
||||
|
||||
buildInputs = [
|
||||
file # for libmagic
|
||||
ncurses
|
||||
openssl
|
||||
readline
|
||||
sqlite
|
||||
zlib
|
||||
] ++ lib.optionals stdenv.hostPlatform.isDarwin [ AppKit Cocoa Foundation ];
|
||||
|
||||
cmakeFlags = [
|
||||
"-DHAS_WHATSAPP=OFF" # go module build required
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Terminal-based chat client with support for Telegram and WhatsApp";
|
||||
mainProgram = "nchat";
|
||||
homepage = "https://github.com/d99kris/nchat";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ sikmir ];
|
||||
platforms = platforms.unix;
|
||||
};
|
||||
}
|
74
pkgs/by-name/nc/nchat/package.nix
Normal file
74
pkgs/by-name/nc/nchat/package.nix
Normal file
@ -0,0 +1,74 @@
|
||||
{
|
||||
lib,
|
||||
fetchFromGitHub,
|
||||
file, # for libmagic
|
||||
ncurses,
|
||||
openssl,
|
||||
readline,
|
||||
sqlite,
|
||||
zlib,
|
||||
cmake,
|
||||
gperf,
|
||||
stdenv,
|
||||
darwin,
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "nchat";
|
||||
version = "5.2.11";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "d99kris";
|
||||
repo = "nchat";
|
||||
rev = "refs/tags/v${version}";
|
||||
hash = "sha256-LcTVftLKlzHstSaJjdtqoEmQ7kiqft9dbXRXoYjbaus=";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace lib/tgchat/ext/td/CMakeLists.txt \
|
||||
--replace "get_git_head_revision" "#get_git_head_revision"
|
||||
substituteInPlace lib/tgchat/CMakeLists.txt \
|
||||
--replace-fail "list(APPEND OPENSSL_ROOT_DIR" "#list(APPEND OPENSSL_ROOT_DIR"
|
||||
'';
|
||||
|
||||
nativeBuildInputs = [
|
||||
cmake
|
||||
gperf
|
||||
];
|
||||
|
||||
buildInputs =
|
||||
[
|
||||
file # for libmagic
|
||||
ncurses
|
||||
openssl
|
||||
readline
|
||||
sqlite
|
||||
zlib
|
||||
]
|
||||
++ lib.optionals stdenv.isDarwin (
|
||||
with darwin.apple_sdk.frameworks;
|
||||
[
|
||||
AppKit
|
||||
Cocoa
|
||||
Foundation
|
||||
]
|
||||
);
|
||||
|
||||
cmakeFlags = [
|
||||
"-DCMAKE_INSTALL_LIBDIR=lib"
|
||||
"-DHAS_WHATSAPP=OFF" # go module build required
|
||||
];
|
||||
|
||||
meta = {
|
||||
description = "Terminal-based chat client with support for Telegram and WhatsApp";
|
||||
changelog = "https://github.com/d99kris/nchat/releases/tag/v${version}";
|
||||
homepage = "https://github.com/d99kris/nchat";
|
||||
license = lib.licenses.mit;
|
||||
mainProgram = "nchat";
|
||||
maintainers = with lib.maintainers; [
|
||||
luftmensch-luftmensch
|
||||
sikmir
|
||||
];
|
||||
platforms = lib.platforms.unix;
|
||||
};
|
||||
}
|
@ -31738,10 +31738,6 @@ with pkgs;
|
||||
|
||||
ngt = callPackage ../development/libraries/ngt { };
|
||||
|
||||
nchat = callPackage ../applications/networking/instant-messengers/nchat {
|
||||
inherit (darwin.apple_sdk.frameworks) AppKit Cocoa Foundation;
|
||||
};
|
||||
|
||||
nheko = qt6Packages.callPackage ../applications/networking/instant-messengers/nheko { };
|
||||
|
||||
notepad-next = libsForQt5.callPackage ../applications/editors/notepad-next { };
|
||||
|
Loading…
Reference in New Issue
Block a user