summary refs log tree commit diff
path: root/pkgs/tools/package-management/cargo-deb/default.nix
blob: d9e0630e6ff5179eee5b06a62a82221970146add (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
{ stdenv, fetchurl, fetchFromGitHub, rustPlatform, Security }:

rustPlatform.buildRustPackage rec {
  pname = "cargo-deb";
  version = "1.23.0";

  src = fetchFromGitHub {
    owner = "mmstick";
    repo = "cargo-deb";
    rev = "v${version}";
    sha256 = "0jjhbs48f0rprzxnfgav6mjbyvcqnr7xq1qgyjxwd61z8g3m8hx8";
  };

  buildInputs = with stdenv; lib.optionals isDarwin [ Security ];

  cargoSha256 = "03z9hq873jfsbssnd3kr5vz9lx9mvhb1navb2glm6kkw1k2zm4d2";

  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;
  };
}