Unverified Commit 3b0eebbf authored by Aleksana's avatar Aleksana Committed by GitHub
Browse files

cliscord: modernize, migrate to by-name (#399643)

parents c6f0fde8 1c89974d
Loading
Loading
Loading
Loading
+8 −11
Original line number Diff line number Diff line
{
  lib,
  stdenv,
  rustPlatform,
  fetchFromGitHub,
  openssl,
  pkg-config,
  fetchFromGitHub,
  Security,
}:

rustPlatform.buildRustPackage rec {
rustPlatform.buildRustPackage {
  pname = "cliscord";
  version = "unstable-2022-10-07";
  version = "0-unstable-2022-10-07";

  src = fetchFromGitHub {
    owner = "somebody1234";
    repo = pname;
    repo = "cliscord";
    rev = "d62317d55c07ece8c9d042dcd74b62e58c9bfaeb";
    hash = "sha256-dmR49yyErahOUxR9pGW1oYy8Wq5SWOprK317u+JPBv4=";
  };

  buildInputs = [ openssl ] ++ lib.optional stdenv.hostPlatform.isDarwin Security;
  buildInputs = [ openssl ];

  nativeBuildInputs = [ pkg-config ];

  useFetchCargoVendor = true;
  cargoHash = "sha256-bJA+vqbhXeygIAg9HWom3xSuPpJgJY5FLb8UMBjrh7U=";

  meta = with lib; {
  meta = {
    description = "Simple command-line tool to send text and files to discord";
    homepage = "https://github.com/somebody1234/cliscord";
    license = licenses.mit;
    maintainers = with maintainers; [ lom ];
    license = lib.licenses.mit;
    maintainers = with lib.maintainers; [ lom ];
    mainProgram = "cliscord";
  };
}
+0 −4
Original line number Diff line number Diff line
@@ -7285,10 +7285,6 @@ with pkgs;
    jdk = graalvmPackages.graalvm-ce;
  };
  cliscord = callPackage ../misc/cliscord {
    inherit (darwin.apple_sdk.frameworks) Security;
  };
  clojupyter = callPackage ../applications/editors/jupyter-kernels/clojupyter {
    jre = jre8;
  };