nixpkgs/pkgs/tools/security/ripasso/cursive.nix

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

84 lines
1.4 KiB
Nix
Raw Normal View History

2023-04-14 07:48:26 +00:00
{ stdenv
, lib
, rustPlatform
, fetchFromGitHub
, fetchpatch
, pkg-config
, python3
, openssl
, libgpg-error
, gpgme
, xorg
, nettle
, llvmPackages
, clang
, AppKit
, Security
, installShellFiles
}:
rustPlatform.buildRustPackage rec {
2023-04-14 07:48:26 +00:00
version = "0.6.4";
pname = "ripasso-cursive";
src = fetchFromGitHub {
owner = "cortex";
repo = "ripasso";
2023-04-14 07:48:26 +00:00
rev = "release-${version}";
hash = "sha256-9wBaFq2KVfLTd1j8ZPoUlmZJDW2UhvGBAaCGX+qg92s=";
};
2023-04-14 07:48:26 +00:00
patches = [
./fix-tests.patch
];
2023-04-14 07:48:26 +00:00
cargoPatches = [
./fix-build.patch
];
2023-01-14 19:38:27 +00:00
cargoLock = {
lockFile = ./Cargo.lock;
outputHashes = {
"qml-0.0.9" = "sha256-ILqvUaH7nSu2JtEs8ox7KroOzYnU5ai44k1HE4Bz5gg=";
};
};
2021-06-15 18:43:05 +00:00
cargoBuildFlags = [ "-p ripasso-cursive" ];
2023-04-14 07:48:26 +00:00
nativeBuildInputs = [
pkg-config
gpgme
python3
installShellFiles
clang
rustPlatform.bindgenHook
];
buildInputs = [
2023-04-14 07:48:26 +00:00
openssl
libgpg-error
gpgme
xorg.libxcb
nettle
] ++ lib.optionals stdenv.isDarwin [
AppKit
Security
];
2021-06-15 18:43:05 +00:00
preCheck = ''
export HOME=$TMPDIR
'';
postInstall = ''
installManPage target/man-page/cursive/ripasso-cursive.1
'';
meta = with lib; {
description = "A simple password manager written in Rust";
homepage = "https://github.com/cortex/ripasso";
license = licenses.gpl3;
maintainers = with maintainers; [ sgo ];
platforms = platforms.unix;
};
}