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

40 lines
1.1 KiB
Nix
Raw Normal View History

2021-01-17 03:51:22 +00:00
{ stdenv, lib, rustPlatform, fetchFromGitHub, pkg-config, ncurses, python3, openssl, libgpgerror, gpgme, xorg, AppKit, Security }:
with rustPlatform;
buildRustPackage rec {
2020-01-30 07:04:30 +00:00
version = "0.4.0";
pname = "ripasso-cursive";
src = fetchFromGitHub {
owner = "cortex";
repo = "ripasso";
rev = "release-${version}";
2020-01-30 07:04:30 +00:00
sha256 = "164da20j727p8l7hh37j2r8pai9sj402nhswvg0nrlgj53nr6083";
};
patches = [ ./fix-tests.patch ];
cargoSha256 = "1wpn67v0xmxhn1dgzhh1pwz1yc3cizmfxhpb7qv9b27ynx4486ji";
cargoBuildFlags = [ "-p ripasso-cursive -p ripasso-man" ];
2021-01-17 03:51:22 +00:00
nativeBuildInputs = [ pkg-config gpgme python3 ];
buildInputs = [
2020-03-29 09:02:25 +01:00
ncurses openssl libgpgerror gpgme xorg.libxcb
2021-01-15 09:19:50 +00:00
] ++ lib.optionals stdenv.isDarwin [ AppKit Security ];
preFixup = ''
mkdir -p "$out/man/man1"
$out/bin/ripasso-man > $out/man/man1/ripasso-cursive.1
rm $out/bin/ripasso-man
'';
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;
};
}