ripasso-cursive: cosmetic changes (#361736)

This commit is contained in:
Gaétan Lepage 2024-12-05 00:39:19 +01:00 committed by GitHub
commit 20486ea5b8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 41 additions and 34 deletions

View File

@ -1,18 +1,22 @@
{ stdenv
, lib
, rustPlatform
, fetchFromGitHub
, pkg-config
, python3
, openssl
, libgpg-error
, gpgme
, xorg
, nettle
, clang
, AppKit
, Security
, installShellFiles
{
lib,
stdenv,
rustPlatform,
fetchFromGitHub,
# nativeBuildInputs
gpgme,
installShellFiles,
pkg-config,
python3,
# buildInputs
libgpg-error,
nettle,
openssl,
xorg,
nix-update-script,
}:
rustPlatform.buildRustPackage rec {
@ -22,7 +26,7 @@ rustPlatform.buildRustPackage rec {
src = fetchFromGitHub {
owner = "cortex";
repo = "ripasso";
rev = "release-${version}";
rev = "refs/tags/release-${version}";
hash = "sha256-j98X/+UTea4lCtFfMpClnfcKlvxm4DpOujLc0xc3VUY=";
};
@ -35,39 +39,46 @@ rustPlatform.buildRustPackage rec {
cargoBuildFlags = [ "-p ripasso-cursive" ];
nativeBuildInputs = [
pkg-config
gpgme
python3
installShellFiles
clang
pkg-config
python3
rustPlatform.bindgenHook
];
buildInputs = [
openssl
libgpg-error
gpgme
xorg.libxcb
libgpg-error
nettle
] ++ lib.optionals stdenv.hostPlatform.isDarwin [
AppKit
Security
openssl
xorg.libxcb
];
preCheck = ''
export HOME=$TMPDIR
export HOME=$(mktemp -d)
'';
checkFlags = lib.optionals stdenv.hostPlatform.isDarwin [
# Fails in the darwin sandbox with:
# Attempted to create a NULL object.
# event loop thread panicked
"--skip=pass::pass_tests::test_add_recipient_not_in_key_ring"
];
postInstall = ''
installManPage target/man-page/cursive/ripasso-cursive.1
'';
meta = with lib; {
passthru = {
updateScript = nix-update-script { };
};
meta = {
description = "Simple password manager written in Rust";
mainProgram = "ripasso-cursive";
homepage = "https://github.com/cortex/ripasso";
license = licenses.gpl3;
maintainers = with maintainers; [ sgo ];
platforms = platforms.unix;
license = lib.licenses.gpl3;
maintainers = with lib.maintainers; [ sgo ];
platforms = lib.platforms.unix;
};
}

View File

@ -2696,10 +2696,6 @@ with pkgs;
razergenie = libsForQt5.callPackage ../applications/misc/razergenie { };
ripasso-cursive = callPackage ../tools/security/ripasso/cursive.nix {
inherit (darwin.apple_sdk.frameworks) AppKit Security;
};
roundcube = callPackage ../servers/roundcube { };
roundcubePlugins = dontRecurseIntoAttrs (callPackage ../servers/roundcube/plugins { });