2021-10-10 18:13:47 +02:00
|
|
|
{ lib
|
|
|
|
, rustPlatform
|
|
|
|
, fetchFromGitHub
|
|
|
|
, pkg-config
|
|
|
|
, openssl
|
|
|
|
, stdenv
|
|
|
|
, Security
|
|
|
|
}:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "synth";
|
2021-10-18 23:11:23 +02:00
|
|
|
version = "0.6.0";
|
2021-10-10 18:13:47 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "getsynth";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2021-10-18 23:11:23 +02:00
|
|
|
sha256 = "sha256-i5X2HUOCgY2znH4rDzhFpsPXsFeM7GR4soAO/rFDjjo=";
|
2021-10-10 18:13:47 +02:00
|
|
|
};
|
|
|
|
|
2021-10-18 23:11:23 +02:00
|
|
|
cargoSha256 = "sha256-47i46Y6JjTGWC7mfMd2x2k8v0SY1o2UHdEU4rF0VrsY=";
|
2021-10-10 18:13:47 +02:00
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|