nixpkgs/pkgs/tools/security/ripasso/cursive.nix
Daniël de Kok 85f96822a0 treewide: fix cargoSha256/cargoHash
Rust 1.50.0 incorporated a Cargo change (rust-lang/cargo#8937) in
which cargo vendor erroneously changed permissions of vendored
crates. This was fixed in Rust
1.51.0 (rust-lang/cargo#9131). Unfortunately, this means that all
cargoSha256/cargoHashes produced during the Rust 1.50.0 cycle are
potentially broken.

This change updates cargoSha256/cargoHash tree-wide.

Fixes #121994.
2021-05-08 00:36:37 -07:00

40 lines
1.1 KiB
Nix

{ stdenv, lib, rustPlatform, fetchFromGitHub, pkg-config, ncurses, python3, openssl, libgpgerror, gpgme, xorg, AppKit, Security }:
with rustPlatform;
buildRustPackage rec {
version = "0.4.0";
pname = "ripasso-cursive";
src = fetchFromGitHub {
owner = "cortex";
repo = "ripasso";
rev = "release-${version}";
sha256 = "164da20j727p8l7hh37j2r8pai9sj402nhswvg0nrlgj53nr6083";
};
patches = [ ./fix-tests.patch ];
cargoSha256 = "1sv5czhrafk15yj5xyd1x9jdqn1dz6aqpxxnyz49icx53qlg9f8g";
cargoBuildFlags = [ "-p ripasso-cursive -p ripasso-man" ];
nativeBuildInputs = [ pkg-config gpgme python3 ];
buildInputs = [
ncurses openssl libgpgerror gpgme xorg.libxcb
] ++ 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;
};
}