Files
nixpkgs/pkgs/by-name/gu/gurk-rs/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

70 lines
1.4 KiB
Nix

{
stdenv,
lib,
protobuf,
rustPlatform,
fetchFromGitHub,
pkgsBuildHost,
openssl,
pkg-config,
writableTmpDirAsHomeHook,
versionCheckHook,
nix-update-script,
gurk-rs,
}:
rustPlatform.buildRustPackage rec {
pname = "gurk-rs";
version = "0.6.4";
src = fetchFromGitHub {
owner = "boxdot";
repo = "gurk-rs";
tag = "v${version}";
hash = "sha256-1vnyzKissOciLopWzWN2kmraFevYW/w32KVmP8qgUM4=";
};
postPatch = ''
rm .cargo/config.toml
'';
cargoHash = "sha256-PCeiJYeIeMgKoQYiDI6DPwNgJcSxw4gw6Ra1YmqsNys=";
nativeBuildInputs = [
protobuf
pkg-config
];
buildInputs = [ openssl ];
NIX_LDFLAGS = lib.optionals (stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isx86_64) [
"-framework"
"AppKit"
];
PROTOC = "${pkgsBuildHost.protobuf}/bin/protoc";
OPENSSL_NO_VENDOR = true;
useNextest = true;
nativeCheckInputs = [ writableTmpDirAsHomeHook ];
nativeInstallCheckInputs = [
versionCheckHook
];
doInstallCheck = true;
versionCheckProgram = "${placeholder "out"}/bin/${meta.mainProgram}";
versionCheckProgramArg = "--version";
passthru.updateScript = nix-update-script { };
meta = with lib; {
description = "Signal Messenger client for terminal";
mainProgram = "gurk";
homepage = "https://github.com/boxdot/gurk-rs";
license = licenses.agpl3Only;
maintainers = with maintainers; [ devhell ];
};
}