depot/third_party/nixpkgs/pkgs/tools/misc/synth/default.nix
Default email 556d6f0562 Project import generated by Copybara.
GitOrigin-RevId: e4ef597edfd8a0ba5f12362932fc9b1dd01a0aef
2021-10-11 18:52:03 +02:00

36 lines
821 B
Nix

{ lib
, rustPlatform
, fetchFromGitHub
, pkg-config
, openssl
, stdenv
, Security
}:
rustPlatform.buildRustPackage rec {
pname = "synth";
version = "0.5.6";
src = fetchFromGitHub {
owner = "getsynth";
repo = pname;
rev = "v${version}";
sha256 = "06kgzaja04553gaxrfz6d1rqi3xwa6ijl0q6425fg0mqq9ifv7xk";
};
cargoSha256 = "sha256-bjda4uE5K+cJkS2TsTv7FN3H6q3cElRr674FTKaIexA=";
nativeBuildInputs = [ pkg-config ];
buildInputs = [ openssl ] ++ lib.optional stdenv.isDarwin Security;
# requires unstable rust features
RUSTC_BOOTSTRAP = 1;
meta = with lib; {
description = "A tool for generating realistic data using a declarative data model";
homepage = "https://github.com/getsynth/synth";
license = licenses.asl20;
maintainers = with maintainers; [ figsoda ];
};
}