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