2020-01-09 13:30:54 +00:00
|
|
|
{ stdenv
|
|
|
|
, lib
|
|
|
|
, fetchFromGitHub
|
|
|
|
, rustPlatform
|
|
|
|
, Security }:
|
2019-11-11 15:50:48 +00:00
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "cargo-deb";
|
2020-01-09 13:30:54 +00:00
|
|
|
version = "1.23.1";
|
2019-11-11 15:50:48 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "mmstick";
|
2020-01-09 13:30:54 +00:00
|
|
|
repo = pname;
|
2019-11-11 15:50:48 +00:00
|
|
|
rev = "v${version}";
|
2020-01-09 13:30:54 +00:00
|
|
|
sha256 = "0dkkbyzimnzfyrzmfn83jqg5xq53wzrknixnyh46cniqffqhd663";
|
2019-11-11 15:50:48 +00:00
|
|
|
};
|
|
|
|
|
2020-01-09 13:30:54 +00:00
|
|
|
buildInputs = lib.optionals stdenv.isDarwin [ Security ];
|
2019-11-11 15:50:48 +00:00
|
|
|
|
2020-01-09 13:30:54 +00:00
|
|
|
cargoSha256 = "0j64dcczxdr9zdch4a241d5adgipzz8sgbw00min9k3p8hbljd9n";
|
2019-11-11 15:50:48 +00:00
|
|
|
|
2020-01-09 13:30:54 +00:00
|
|
|
meta = with lib; {
|
2019-11-11 15:50:48 +00:00
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|