504525a148
GitOrigin-RevId: bd645e8668ec6612439a9ee7e71f7eac4099d4f6
42 lines
1 KiB
Nix
42 lines
1 KiB
Nix
{ lib
|
|
, rustPlatform
|
|
, fetchFromGitHub
|
|
, makeWrapper
|
|
, dpkg
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "cargo-deb";
|
|
version = "2.0.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "kornelski";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
hash = "sha256-DgKGnIA2ovBLja+r+nYZ97UPaWO7a7RXeXa10guZBTc=";
|
|
};
|
|
|
|
cargoHash = "sha256-Sv9i8f0ywMNvjA2yvCX+2ZhFuNCovEGiaMxkg/IV36g=";
|
|
|
|
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";
|
|
homepage = "https://github.com/kornelski/cargo-deb";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ Br1ght0ne matthiasbeyer ];
|
|
};
|
|
}
|