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

30 lines
716 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-01-09 13:30:54 +00:00
version = "1.23.1";
src = fetchFromGitHub {
owner = "mmstick";
2020-01-09 13:30:54 +00:00
repo = pname;
rev = "v${version}";
2020-01-09 13:30:54 +00:00
sha256 = "0dkkbyzimnzfyrzmfn83jqg5xq53wzrknixnyh46cniqffqhd663";
};
2020-01-09 13:30:54 +00:00
buildInputs = lib.optionals stdenv.isDarwin [ Security ];
2020-01-09 13:30:54 +00:00
cargoSha256 = "0j64dcczxdr9zdch4a241d5adgipzz8sgbw00min9k3p8hbljd9n";
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;
};
}