2021-01-17 03:51:22 +00:00
|
|
|
{ stdenv, lib, rustPlatform, fetchFromGitHub, pkg-config, ncurses, python3, openssl, libgpgerror, gpgme, xorg, AppKit, Security }:
|
2019-08-24 14:41:00 +00:00
|
|
|
|
|
|
|
with rustPlatform;
|
|
|
|
buildRustPackage rec {
|
2020-01-30 07:04:30 +00:00
|
|
|
version = "0.4.0";
|
2019-08-24 14:41:00 +00:00
|
|
|
pname = "ripasso-cursive";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "cortex";
|
|
|
|
repo = "ripasso";
|
2019-12-02 12:40:46 +00:00
|
|
|
rev = "release-${version}";
|
2020-01-30 07:04:30 +00:00
|
|
|
sha256 = "164da20j727p8l7hh37j2r8pai9sj402nhswvg0nrlgj53nr6083";
|
2019-08-24 14:41:00 +00:00
|
|
|
};
|
|
|
|
|
2020-05-13 20:22:51 +00:00
|
|
|
patches = [ ./fix-tests.patch ];
|
|
|
|
|
2021-05-07 11:00:49 +00:00
|
|
|
cargoSha256 = "1sv5czhrafk15yj5xyd1x9jdqn1dz6aqpxxnyz49icx53qlg9f8g";
|
2019-12-02 12:40:46 +00:00
|
|
|
|
|
|
|
cargoBuildFlags = [ "-p ripasso-cursive -p ripasso-man" ];
|
2019-08-24 14:41:00 +00:00
|
|
|
|
2021-01-17 03:51:22 +00:00
|
|
|
nativeBuildInputs = [ pkg-config gpgme python3 ];
|
2019-08-24 14:41:00 +00:00
|
|
|
buildInputs = [
|
2020-03-29 08:02:25 +00:00
|
|
|
ncurses openssl libgpgerror gpgme xorg.libxcb
|
2021-01-15 09:19:50 +00:00
|
|
|
] ++ lib.optionals stdenv.isDarwin [ AppKit Security ];
|
2019-12-02 12:40:46 +00:00
|
|
|
|
|
|
|
preFixup = ''
|
|
|
|
mkdir -p "$out/man/man1"
|
|
|
|
$out/bin/ripasso-man > $out/man/man1/ripasso-cursive.1
|
|
|
|
rm $out/bin/ripasso-man
|
|
|
|
'';
|
2019-08-24 14:41:00 +00:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2019-08-24 14:41:00 +00:00
|
|
|
description = "A simple password manager written in Rust";
|
|
|
|
homepage = "https://github.com/cortex/ripasso";
|
|
|
|
license = licenses.gpl3;
|
|
|
|
maintainers = with maintainers; [ sgo ];
|
2019-12-02 12:40:46 +00:00
|
|
|
platforms = platforms.unix;
|
2019-08-24 14:41:00 +00:00
|
|
|
};
|
|
|
|
}
|