2022-05-11 23:51:17 +02:00
|
|
|
{ lib, stdenv, rustPlatform, openssl, pkg-config, fetchFromGitHub, Security }:
|
2021-11-08 19:07:55 +01:00
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "cliscord";
|
|
|
|
version = "unstable-2020-12-08";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "somebody1234";
|
|
|
|
repo = pname;
|
|
|
|
rev = "b02fbe5516fd7f153d0b0e3c7d5d11e2ab651b43";
|
|
|
|
sha256 = "sha256-hzZozgOkw8kFppuHiX9TQxHhxKRv8utWWbhEOIzKDLo=";
|
|
|
|
};
|
|
|
|
|
2022-05-11 23:51:17 +02:00
|
|
|
buildInputs = [ openssl ] ++ lib.optional stdenv.isDarwin Security;
|
2021-11-08 19:07:55 +01:00
|
|
|
|
|
|
|
nativeBuildInputs = [ pkg-config ];
|
|
|
|
|
|
|
|
cargoSha256 = "12zfwdssyv0j83bff6s4376d99pv7z8ya8q8adwmf5ayvgmj4xz4";
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Simple command-line tool to send text and files to discord";
|
|
|
|
homepage = "https://github.com/somebody1234/cliscord";
|
|
|
|
license = licenses.mit;
|
2021-12-02 00:19:48 +01:00
|
|
|
maintainers = with maintainers; [ lom ];
|
2021-11-08 19:07:55 +01:00
|
|
|
mainProgram = "cliscord";
|
|
|
|
};
|
|
|
|
}
|