9 rustPlatform.buildRustPackage rec {
13 src = fetchFromGitHub {
17 hash = "sha256-ReXDrbFY2qY/0TUYD+EiP9Qa9KwMGb9iLL+tdfDLSpc=";
20 cargoHash = "sha256-yBMeiYWsb+D8WzWRDDi9JFZTFvQAQ7QUeGDb6yFelD8=";
27 # This is an FHS specific assert depending on glibc location
28 "--skip=dependencies::resolve_test"
29 "--skip=run_cargo_deb_command_on_example_dir_with_separate_debug_symbols"
30 # The following tests require empty CARGO_BUILD_TARGET env variable, but we
31 # set it ever since https://github.com/NixOS/nixpkgs/pull/298108.
32 "--skip=build_with_command_line_compress_gz"
33 "--skip=build_with_command_line_compress_xz"
34 "--skip=build_with_explicit_compress_type_gz"
35 "--skip=build_with_explicit_compress_type_xz"
36 "--skip=build_workspaces"
40 "--skip=run_cargo_deb_command_on_example_dir"
41 "--skip=run_cargo_deb_command_on_example_dir_with_variant"
42 "--skip=run_cargo_deb_command_on_example_dir_with_version"
46 wrapProgram $out/bin/cargo-deb \
47 --prefix PATH : ${lib.makeBinPath [ dpkg ]}
51 description = "Cargo subcommand that generates Debian packages from information in Cargo.toml";
52 mainProgram = "cargo-deb";
53 homepage = "https://github.com/kornelski/cargo-deb";
54 license = licenses.mit;
55 maintainers = with maintainers; [