nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{ lib
2, stdenv
3, fetchFromGitHub
4, rustPlatform
5, pkg-config
6, curl
7, libgit2
8, openssl
9, Security
10}:
11
12rustPlatform.buildRustPackage rec {
13 pname = "cargo-raze";
14 version = "0.16.0";
15
16 src = fetchFromGitHub {
17 owner = "google";
18 repo = pname;
19 rev = "v${version}";
20 hash = "sha256-ip0WuBn1b7uN/pAhOl5tfmToK73ZSHK7rucdtufsbCQ=";
21 };
22 sourceRoot = "source/impl";
23
24 cargoHash = "sha256-hNZgQwhm4UPqmANplZGxG0DYHa31tu06nmqYaCA7Vdg=";
25
26 nativeBuildInputs = [ pkg-config ];
27 buildInputs = [
28 libgit2
29 openssl
30 curl
31 ]
32 ++ lib.optional stdenv.isDarwin Security;
33
34 __darwinAllowLocalNetworking = true;
35
36 meta = with lib; {
37 description = "Generate Bazel BUILD files from Cargo dependencies";
38 homepage = "https://github.com/google/cargo-raze";
39 license = licenses.asl20;
40 maintainers = with maintainers; [ elasticdog ];
41 };
42}