cliscord: modernize, migrate to by-name (#399643)
This commit is contained in:
@@ -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";
|
||||
};
|
||||
}
|
||||
@@ -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;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user