mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-18 19:54:05 +00:00
44 lines
1.0 KiB
Nix
44 lines
1.0 KiB
Nix
{ lib
|
|
, rustPlatform
|
|
, fetchFromGitHub
|
|
, makeWrapper
|
|
, dpkg
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "cargo-deb";
|
|
version = "2.1.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "kornelski";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
hash = "sha256-FIBMwLgLLgf6m/ciSlYiQ46HHf1ux0QY4RkoidlaEjs=";
|
|
};
|
|
|
|
cargoHash = "sha256-MmHwaodr/FLxCucfCkV/Cuflyu8902kpEPuTCKkchNU=";
|
|
|
|
nativeBuildInputs = [
|
|
makeWrapper
|
|
];
|
|
|
|
# This is an FHS specific assert depending on glibc location
|
|
checkFlags = [
|
|
"--skip=dependencies::resolve_test"
|
|
"--skip=run_cargo_deb_command_on_example_dir_with_separate_debug_symbols"
|
|
];
|
|
|
|
postInstall = ''
|
|
wrapProgram $out/bin/cargo-deb \
|
|
--prefix PATH : ${lib.makeBinPath [ dpkg ]}
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "A 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 ];
|
|
};
|
|
}
|