diff options
author | Stig Palmquist <stig@stig.io> | 2019-12-02 13:40:46 +0100 |
---|---|---|
committer | Stig Palmquist <stig@stig.io> | 2019-12-02 13:40:46 +0100 |
commit | 2523a7f377d8d7fcd09c5e861b6346e162556aed (patch) | |
tree | 427fe3a078b4bfc22fd9373fd0c7b8f1744a1687 /pkgs/tools | |
parent | 6127bf9837d201bc76d1aa16a85309b161ab07d8 (diff) | |
download | nixpkgs-2523a7f377d8d7fcd09c5e861b6346e162556aed.tar nixpkgs-2523a7f377d8d7fcd09c5e861b6346e162556aed.tar.gz nixpkgs-2523a7f377d8d7fcd09c5e861b6346e162556aed.tar.bz2 nixpkgs-2523a7f377d8d7fcd09c5e861b6346e162556aed.tar.lz nixpkgs-2523a7f377d8d7fcd09c5e861b6346e162556aed.tar.xz nixpkgs-2523a7f377d8d7fcd09c5e861b6346e162556aed.tar.zst nixpkgs-2523a7f377d8d7fcd09c5e861b6346e162556aed.zip |
ripasso-cursive: unstable-2019-08-27 -> 0.3.0
- updated to 0.3.0 - builds man page - add macOS support (@tssm) Co-authored-by: Tae Sandoval <tssm@users.noreply.github.com>
Diffstat (limited to 'pkgs/tools')
-rw-r--r-- | pkgs/tools/security/ripasso/cursive.nix | 23 |
1 files changed, 15 insertions, 8 deletions
diff --git a/pkgs/tools/security/ripasso/cursive.nix b/pkgs/tools/security/ripasso/cursive.nix index 9eac6b6e5ca..b273b882daf 100644 --- a/pkgs/tools/security/ripasso/cursive.nix +++ b/pkgs/tools/security/ripasso/cursive.nix @@ -1,30 +1,37 @@ -{ stdenv, lib, rustPlatform, fetchFromGitHub, pkgconfig, ncurses, python3, openssl, libgpgerror, gpgme, xorg }: +{ stdenv, lib, rustPlatform, fetchFromGitHub, pkgconfig, ncurses, python3, openssl, libgpgerror, gpgme, xorg, AppKit, Security }: with rustPlatform; buildRustPackage rec { - version = "unstable-2019-08-27"; + version = "0.3.0"; pname = "ripasso-cursive"; src = fetchFromGitHub { owner = "cortex"; repo = "ripasso"; - rev = "1b5ef4ae19f95f1422ba5cb09e9e689880599c40"; - sha256 = "1lh1in8knpqz4vbsmdyd4hh8y4bfhxjciysfbq3qzdpdpihgj0nn"; + rev = "release-${version}"; + sha256 = "1rkb23i9gcfmifcl31s8w86k7aza6nxrh3w33fvhv1ins1gxxk7w"; }; - cargoSha256 = "0dwaa106vj7jbgshhqpjabsr0zmkg1a5syzky7jcaasvc7r7njwl"; - cargoBuildFlags = [ "-p ripasso-cursive" ]; + cargoSha256 = "1p0bsl4h2w257vfjbpqiga693gaslfq34g30dghpqb5n4kl416zp"; + + cargoBuildFlags = [ "-p ripasso-cursive -p ripasso-man" ]; nativeBuildInputs = [ pkgconfig ]; buildInputs = [ ncurses python3 openssl libgpgerror gpgme xorg.libxcb - ]; + ] ++ stdenv.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 stdenv.lib; { description = "A simple password manager written in Rust"; homepage = "https://github.com/cortex/ripasso"; license = licenses.gpl3; maintainers = with maintainers; [ sgo ]; - platforms = platforms.linux; + platforms = platforms.unix; }; } |