Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / misc / cliscord / default.nix
blob1f8de323efe3b9dea26d46022690a7273a51e154
1 { lib
2 , stdenv
3 , rustPlatform
4 , openssl
5 , pkg-config
6 , fetchFromGitHub
7 , fetchpatch
8 , Security
9 }:
11 rustPlatform.buildRustPackage rec {
12   pname = "cliscord";
13   version = "unstable-2022-10-07";
15   src = fetchFromGitHub {
16     owner = "somebody1234";
17     repo = pname;
18     rev = "d62317d55c07ece8c9d042dcd74b62e58c9bfaeb";
19     hash = "sha256-dmR49yyErahOUxR9pGW1oYy8Wq5SWOprK317u+JPBv4=";
20   };
22   buildInputs = [ openssl ] ++ lib.optional stdenv.isDarwin Security;
24   nativeBuildInputs = [ pkg-config ];
26   cargoHash = "sha256-Z8ras6W4BnAWjHe6rPd1X1d3US5gq7CxnBAkW//OTsg=";
28   meta = with lib; {
29     description = "Simple command-line tool to send text and files to discord";
30     homepage = "https://github.com/somebody1234/cliscord";
31     license = licenses.mit;
32     maintainers = with maintainers; [ lom ];
33     mainProgram = "cliscord";
34   };