Files
nixpkgs/pkgs/by-name/ca/cargo-update/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

76 lines
1.4 KiB
Nix

{
lib,
rustPlatform,
fetchCrate,
cmake,
installShellFiles,
pkg-config,
ronn,
stdenv,
curl,
libgit2,
libssh2,
openssl,
zlib,
}:
rustPlatform.buildRustPackage rec {
pname = "cargo-update";
version = "18.0.0";
src = fetchCrate {
inherit pname version;
hash = "sha256-G2x5ZSNF/IqTThnM+iD7U5XHxS5zC5AfHt8wu2jQBLE=";
};
cargoHash = "sha256-1hshZ6+JFVLSzgy/Hvch2Xu1o8OPGwShWuZ56YyXjZo=";
nativeBuildInputs = [
cmake
installShellFiles
pkg-config
ronn
]
++ lib.optionals stdenv.hostPlatform.isDarwin [
curl
];
buildInputs = [
libgit2
libssh2
openssl
zlib
]
++ lib.optionals stdenv.hostPlatform.isDarwin [
curl
];
postBuild = ''
# Man pages contain non-ASCII, so explicitly set encoding to UTF-8.
HOME=$TMPDIR \
RUBYOPT="-E utf-8:utf-8" \
ronn -r --organization="cargo-update developers" man/*.md
'';
postInstall = ''
installManPage man/*.1
'';
env = {
LIBGIT2_NO_VENDOR = 1;
};
meta = {
description = "Cargo subcommand for checking and applying updates to installed executables";
homepage = "https://github.com/nabijaczleweli/cargo-update";
changelog = "https://github.com/nabijaczleweli/cargo-update/releases/tag/v${version}";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [
gerschtli
Br1ght0ne
johntitor
matthiasbeyer
];
};
}