Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib 2, stdenv 3, rustPlatform 4, openssl 5, pkg-config 6, fetchFromGitHub 7, fetchpatch 8, Security 9}: 10 11rustPlatform.buildRustPackage rec { 12 pname = "cliscord"; 13 version = "unstable-2022-10-07"; 14 15 src = fetchFromGitHub { 16 owner = "somebody1234"; 17 repo = pname; 18 rev = "d62317d55c07ece8c9d042dcd74b62e58c9bfaeb"; 19 hash = "sha256-dmR49yyErahOUxR9pGW1oYy8Wq5SWOprK317u+JPBv4="; 20 }; 21 22 buildInputs = [ openssl ] ++ lib.optional stdenv.isDarwin Security; 23 24 nativeBuildInputs = [ pkg-config ]; 25 26 cargoHash = "sha256-Z8ras6W4BnAWjHe6rPd1X1d3US5gq7CxnBAkW//OTsg="; 27 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 }; 35}