nixpkgs/pkgs/applications/networking/instant-messengers/gurk-rs/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

52 lines
1.3 KiB
Nix
Raw Normal View History

2022-02-18 15:13:35 +00:00
{ stdenv
, lib
, protobuf
, rustPlatform
, fetchFromGitHub
2022-11-04 04:20:00 +00:00
, Cocoa
2024-01-05 18:11:58 +00:00
, pkgsBuildHost
2022-02-18 15:13:35 +00:00
}:
rustPlatform.buildRustPackage rec {
pname = "gurk-rs";
version = "0.4.2";
2022-02-18 15:13:35 +00:00
src = fetchFromGitHub {
owner = "boxdot";
repo = pname;
rev = "v${version}";
sha256 = "sha256-UTjTXUc0W+vlO77ilveAy0HWF5KSKbDnrg5ewTyuTdA=";
2022-02-18 15:13:35 +00:00
};
2022-10-28 04:20:00 +00:00
postPatch = ''
rm .cargo/config.toml
'';
cargoLock = {
lockFile = ./Cargo.lock;
outputHashes = {
"libsignal-protocol-0.1.0" = "sha256-FCrJO7porlY5FrwZ2c67UPd4tgN7cH2/3DTwfPjihwM=";
"libsignal-service-0.1.0" = "sha256-OWLtaxldKgYPP/aJuWezNkNN0990l3RtDWK38R1fL90=";
"curve25519-dalek-4.0.0" = "sha256-KUXvYXeVvJEQ/+dydKzXWCZmA2bFa2IosDzaBL6/Si0=";
"presage-0.6.0-dev" = "sha256-65YhxMAAFsnOprBWiB0uH/R9iITt+EYn+kMVjAwTgOQ=";
"qr2term-0.3.1" = "sha256-U8YLouVZTtDwsvzZiO6YB4Pe75RXGkZXOxHCQcCOyT8=";
};
};
2022-11-04 04:20:00 +00:00
nativeBuildInputs = [ protobuf ];
buildInputs = lib.optionals stdenv.isDarwin [ Cocoa ];
NIX_LDFLAGS = lib.optionals (stdenv.isDarwin && stdenv.isx86_64) [ "-framework" "AppKit" ];
2022-02-18 15:13:35 +00:00
2024-01-05 18:11:58 +00:00
PROTOC = "${pkgsBuildHost.protobuf}/bin/protoc";
2022-02-18 15:13:35 +00:00
meta = with lib; {
description = "Signal Messenger client for terminal";
mainProgram = "gurk";
2022-02-18 15:13:35 +00:00
homepage = "https://github.com/boxdot/gurk-rs";
license = licenses.agpl3Only;
maintainers = with maintainers; [ devhell ];
};
}