about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/tools/cargo-web/default.nix
blob: 262a3d31742af3647ce44dcfca9592b89a41fe01 (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
26
27
28
29
30
31
32
{ stdenv, fetchFromGitHub, openssl, perl, pkgconfig, rustPlatform
, CoreServices, Security, cf-private
}:

rustPlatform.buildRustPackage rec {
  pname = "cargo-web";
  version = "0.6.25";

  src = fetchFromGitHub {
    owner = "koute";
    repo = pname;
    rev = version;
    sha256 = "0q77bryc7ap8gb4rzp9xk8ngqwxh106qn7899g30lwxycnyii0mf";
  };

  cargoSha256 = "1f4sj260q4rlzbajwimya1yhh90hmmbhr47yfg9i8xcv5cg0cqjn";

  nativeBuildInputs = [ openssl perl pkgconfig ];
  buildInputs = stdenv.lib.optionals stdenv.isDarwin [
    CoreServices Security
    # Needed for CFURLResourceIsReachable symbols.
    cf-private
  ];

  meta = with stdenv.lib; {
    description = "A Cargo subcommand for the client-side Web";
    homepage = https://github.com/koute/cargo-web;
    license = with licenses; [ asl20 /* or */ mit ];
    maintainers = [ maintainers.kevincox ];
    platforms = platforms.all;
  };
}