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

This commit is contained in:
Aleksana
2025-04-19 21:11:17 +08:00
committed by GitHub
2 changed files with 8 additions and 15 deletions
@@ -1,36 +1,33 @@
{
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";
};
}
-4
View File
@@ -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;
};