2023-04-29 16:46:19 +00:00
|
|
|
{ stdenv
|
|
|
|
, lib
|
|
|
|
, rustPlatform
|
|
|
|
, fetchFromGitHub
|
|
|
|
, pkg-config
|
|
|
|
, python3
|
|
|
|
, openssl
|
|
|
|
, libgpg-error
|
|
|
|
, gpgme
|
|
|
|
, xorg
|
|
|
|
, nettle
|
|
|
|
, clang
|
|
|
|
, AppKit
|
|
|
|
, Security
|
|
|
|
, installShellFiles
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-04-29 16:46:19 +00:00
|
|
|
rustPlatform.buildRustPackage rec {
|
2024-09-19 14:19:46 +00:00
|
|
|
version = "0.7.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "ripasso-cursive";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "cortex";
|
|
|
|
repo = "ripasso";
|
2023-04-29 16:46:19 +00:00
|
|
|
rev = "release-${version}";
|
2024-09-19 14:19:46 +00:00
|
|
|
hash = "sha256-j98X/+UTea4lCtFfMpClnfcKlvxm4DpOujLc0xc3VUY=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2024-09-19 14:19:46 +00:00
|
|
|
cargoHash = "sha256-dP8H4OOgtQEBEJxpbaR3KnXFtgBdX4r+dCpBJjBK1MM=";
|
|
|
|
|
2023-04-29 16:46:19 +00:00
|
|
|
patches = [
|
|
|
|
./fix-tests.patch
|
|
|
|
];
|
2020-06-18 07:06:33 +00:00
|
|
|
|
2021-06-28 23:13:55 +00:00
|
|
|
cargoBuildFlags = [ "-p ripasso-cursive" ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-04-29 16:46:19 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
pkg-config
|
|
|
|
gpgme
|
|
|
|
python3
|
|
|
|
installShellFiles
|
|
|
|
clang
|
|
|
|
rustPlatform.bindgenHook
|
|
|
|
];
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
buildInputs = [
|
2023-04-29 16:46:19 +00:00
|
|
|
openssl
|
|
|
|
libgpg-error
|
|
|
|
gpgme
|
|
|
|
xorg.libxcb
|
|
|
|
nettle
|
2024-09-26 11:04:55 +00:00
|
|
|
] ++ lib.optionals stdenv.hostPlatform.isDarwin [
|
2023-04-29 16:46:19 +00:00
|
|
|
AppKit
|
|
|
|
Security
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-06-28 23:13:55 +00:00
|
|
|
preCheck = ''
|
|
|
|
export HOME=$TMPDIR
|
|
|
|
'';
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
installManPage target/man-page/cursive/ripasso-cursive.1
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Simple password manager written in Rust";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "ripasso-cursive";
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://github.com/cortex/ripasso";
|
|
|
|
license = licenses.gpl3;
|
|
|
|
maintainers = with maintainers; [ sgo ];
|
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|