2019-11-11 15:50:48 +00:00
|
|
|
{ stdenv, fetchurl, fetchFromGitHub, rustPlatform, Security }:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "cargo-deb";
|
2019-12-04 13:22:54 +00:00
|
|
|
version = "1.23.0";
|
2019-11-11 15:50:48 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "mmstick";
|
|
|
|
repo = "cargo-deb";
|
|
|
|
rev = "v${version}";
|
2019-12-04 13:22:54 +00:00
|
|
|
sha256 = "0jjhbs48f0rprzxnfgav6mjbyvcqnr7xq1qgyjxwd61z8g3m8hx8";
|
2019-11-11 15:50:48 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = with stdenv; lib.optionals isDarwin [ Security ];
|
|
|
|
|
2019-12-04 13:22:54 +00:00
|
|
|
cargoSha256 = "03z9hq873jfsbssnd3kr5vz9lx9mvhb1navb2glm6kkw1k2zm4d2";
|
2019-11-11 15:50:48 +00:00
|
|
|
|
|
|
|
meta = with stdenv.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;
|
|
|
|
};
|
|
|
|
}
|