nixpkgs/pkgs/tools/package-management/cargo-deb/default.nix

30 lines
745 B
Nix
Raw Normal View History

2020-01-09 13:30:54 +00:00
{ stdenv
, lib
, fetchFromGitHub
, rustPlatform
, Security }:
rustPlatform.buildRustPackage rec {
pname = "cargo-deb";
2020-02-28 21:46:06 +00:00
version = "1.23.2";
src = fetchFromGitHub {
owner = "mmstick";
2020-01-09 13:30:54 +00:00
repo = pname;
2020-02-28 21:46:06 +00:00
rev = "367910e0020de93f45c175c92a37a53ee401978f";
sha256 = "1s0xv818rlafdzpb70c1ldv5iq3hh2jxj7g3l6p7v20q1wx0nnvv";
};
2020-01-09 13:30:54 +00:00
buildInputs = lib.optionals stdenv.isDarwin [ Security ];
2020-02-28 21:46:06 +00:00
cargoSha256 = "0ffzq2gm0f56vyfkmdzxfs5z1xsdj2kcsyc1fdrk4k1cylqn2f47";
2020-01-09 13:30:54 +00:00
meta = with lib; {
description = "Generate Debian packages from information in Cargo.toml";
homepage = "https://github.com/mmstick/cargo-deb";
license = licenses.mit;
maintainers = with maintainers; [ filalex77 ];
platforms = platforms.all;
};
}