mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-03 19:43:30 +00:00
eb11feaa0b
Changes the default fetcher in the Rust Platform to be the newer `fetchCargoTarball`, and changes every application using the current default to instead opt out. This commit does not change any hashes or cause any rebuilds. Once integrated, we will start deleting the opt-outs and recomputing hashes. See #79975 for details.
41 lines
1.2 KiB
Nix
41 lines
1.2 KiB
Nix
{ stdenv, lib, rustPlatform, fetchFromGitHub, pkgconfig, 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";
|
|
};
|
|
|
|
# Delete this on next update; see #79975 for details
|
|
legacyCargoFetcher = true;
|
|
|
|
cargoSha256 = "1vyhdbia7khh0ixim00knai5d270jl5a5crqik1qaz7bkwc02bsp";
|
|
|
|
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.unix;
|
|
};
|
|
}
|