12 rustPlatform.buildRustPackage rec {
16 src = fetchFromGitHub {
20 hash = "sha256-g0V6FPkCpIEWx+/kDG9+0NtlCVj6jc1gbkkzOSl/lAo=";
28 lockFile = ./Cargo.lock;
30 "libsignal-protocol-0.1.0" = "sha256-4aHINlpVAqVTtm7npwXQRutZUmIxYgkhXhApg7jSM4M=";
31 "libsignal-service-0.1.0" = "sha256-AOGw76A9R2qH3hc7B+MBE3okzW8b5LTZdepzUDOv9lM=";
32 "curve25519-dalek-4.1.3" = "sha256-bPh7eEgcZnq9C3wmSnnYv0C4aAP+7pnwk9Io29GrI4A=";
33 "presage-0.6.2" = "sha256-t9t8ecPtefI/jYlk+Ul8WdgH26VJIkfMptbKxprekS0=";
34 "qr2term-0.3.1" = "sha256-U8YLouVZTtDwsvzZiO6YB4Pe75RXGkZXOxHCQcCOyT8=";
38 nativeBuildInputs = [ protobuf pkg-config ];
40 buildInputs = [ openssl ]
41 ++ lib.optionals stdenv.hostPlatform.isDarwin [ Cocoa ];
43 NIX_LDFLAGS = lib.optionals (stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isx86_64) [ "-framework" "AppKit" ];
45 PROTOC = "${pkgsBuildHost.protobuf}/bin/protoc";
47 OPENSSL_NO_VENDOR = true;
52 description = "Signal Messenger client for terminal";
54 homepage = "https://github.com/boxdot/gurk-rs";
55 license = licenses.agpl3Only;
56 maintainers = with maintainers; [ devhell ];