1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-17 19:21:04 +00:00

gurk-rs: 0.4.3 -> 0.5.1

This commit is contained in:
devhell 2024-09-07 15:10:16 +01:00 committed by Alyssa Ross
parent 47783b2a4f
commit 7341768be9
2 changed files with 1226 additions and 1066 deletions

File diff suppressed because it is too large Load diff

View file

@ -5,17 +5,19 @@
, fetchFromGitHub
, Cocoa
, pkgsBuildHost
, openssl
, pkg-config
}:
rustPlatform.buildRustPackage rec {
pname = "gurk-rs";
version = "0.4.3";
version = "0.5.1";
src = fetchFromGitHub {
owner = "boxdot";
repo = pname;
rev = "v${version}";
hash = "sha256-MPYqWgwh5PKH3GsCDx6aa4ryorWZ96YK8KOYZ5PILkk=";
hash = "sha256-g0V6FPkCpIEWx+/kDG9+0NtlCVj6jc1gbkkzOSl/lAo=";
};
postPatch = ''
@ -25,22 +27,27 @@ rustPlatform.buildRustPackage rec {
cargoLock = {
lockFile = ./Cargo.lock;
outputHashes = {
"libsignal-protocol-0.1.0" = "sha256-p4YzrtJaQhuMBTtquvS1m9llszfyTeDfl7+IXzRUFSE=";
"libsignal-service-0.1.0" = "sha256-p0umCPtBg9s4G6RHcwK/tU+RtQE2fFLRHOYt2GmBCtQ=";
"curve25519-dalek-4.1.1" = "sha256-p9Vx0lAaYILypsI4/RVsHZLOqZKaa4Wvf7DanLA38pc=";
"presage-0.6.1" = "sha256-MsVSUI4ht+ftO2UC1IIeCtomkzg4ug95kKsc41PDVNg=";
"libsignal-protocol-0.1.0" = "sha256-4aHINlpVAqVTtm7npwXQRutZUmIxYgkhXhApg7jSM4M=";
"libsignal-service-0.1.0" = "sha256-AOGw76A9R2qH3hc7B+MBE3okzW8b5LTZdepzUDOv9lM=";
"curve25519-dalek-4.1.3" = "sha256-bPh7eEgcZnq9C3wmSnnYv0C4aAP+7pnwk9Io29GrI4A=";
"presage-0.6.2" = "sha256-t9t8ecPtefI/jYlk+Ul8WdgH26VJIkfMptbKxprekS0=";
"qr2term-0.3.1" = "sha256-U8YLouVZTtDwsvzZiO6YB4Pe75RXGkZXOxHCQcCOyT8=";
};
};
nativeBuildInputs = [ protobuf ];
nativeBuildInputs = [ protobuf pkg-config ];
buildInputs = lib.optionals stdenv.isDarwin [ Cocoa ];
buildInputs = [ openssl ]
++ lib.optionals stdenv.isDarwin [ Cocoa ];
NIX_LDFLAGS = lib.optionals (stdenv.isDarwin && stdenv.isx86_64) [ "-framework" "AppKit" ];
PROTOC = "${pkgsBuildHost.protobuf}/bin/protoc";
OPENSSL_NO_VENDOR = true;
useNextest = true;
meta = with lib; {
description = "Signal Messenger client for terminal";
mainProgram = "gurk";