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
61 lines
1.7 KiB
Nix
61 lines
1.7 KiB
Nix
{
|
|
lib,
|
|
rustPlatform,
|
|
fetchFromGitHub,
|
|
makeWrapper,
|
|
dpkg,
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "cargo-deb";
|
|
version = "3.6.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "kornelski";
|
|
repo = "cargo-deb";
|
|
rev = "v${version}";
|
|
hash = "sha256-/mPsmg2UUwjLKg0GjEGvg6qMswyBgwjP+HpldF3Wm/k=";
|
|
};
|
|
|
|
cargoHash = "sha256-HWA/CCDQNMKt2lHcPTByeg2z4TisafeN7Zgo/A+NOrE=";
|
|
|
|
nativeBuildInputs = [
|
|
makeWrapper
|
|
];
|
|
|
|
checkFlags = [
|
|
# This is an FHS specific assert depending on glibc location
|
|
"--skip=dependencies::resolve_test"
|
|
"--skip=run_cargo_deb_command_on_example_dir_with_separate_debug_symbols"
|
|
# The following tests require empty CARGO_BUILD_TARGET env variable, but we
|
|
# set it ever since https://github.com/NixOS/nixpkgs/pull/298108.
|
|
"--skip=build_with_command_line_compress_gz"
|
|
"--skip=build_with_command_line_compress_xz"
|
|
"--skip=build_with_explicit_compress_type_gz"
|
|
"--skip=build_with_explicit_compress_type_xz"
|
|
"--skip=build_workspaces"
|
|
"--skip=cwd_dir1"
|
|
"--skip=cwd_dir2"
|
|
"--skip=cwd_dir3"
|
|
"--skip=run_cargo_deb_command_on_example_dir"
|
|
"--skip=run_cargo_deb_command_on_example_dir_with_variant"
|
|
"--skip=run_cargo_deb_command_on_example_dir_with_version"
|
|
];
|
|
|
|
postInstall = ''
|
|
wrapProgram $out/bin/cargo-deb \
|
|
--prefix PATH : ${lib.makeBinPath [ dpkg ]}
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Cargo subcommand that generates Debian packages from information in Cargo.toml";
|
|
mainProgram = "cargo-deb";
|
|
homepage = "https://github.com/kornelski/cargo-deb";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [
|
|
Br1ght0ne
|
|
matthiasbeyer
|
|
];
|
|
};
|
|
}
|