2021-10-10 16:13:47 +00:00
|
|
|
{ lib
|
|
|
|
, rustPlatform
|
|
|
|
, fetchFromGitHub
|
|
|
|
, stdenv
|
2021-11-06 20:23:08 +00:00
|
|
|
, AppKit
|
2021-10-10 16:13:47 +00:00
|
|
|
, Security
|
|
|
|
}:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "synth";
|
2022-11-20 18:53:00 +00:00
|
|
|
version = "0.6.9";
|
2021-10-10 16:13:47 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2022-09-11 18:53:45 +00:00
|
|
|
owner = "shuttle-hq";
|
2021-10-10 16:13:47 +00:00
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2022-11-20 18:53:00 +00:00
|
|
|
sha256 = "sha256-/z2VEfeCCuffxlMh4WOpYkMSAgmh+sbx3ajcD5d4DdE=";
|
2021-10-10 16:13:47 +00:00
|
|
|
};
|
|
|
|
|
2022-11-20 18:53:00 +00:00
|
|
|
cargoSha256 = "sha256-i2Pp9sfTBth3DtrQ99Vw+KLnGECrkqtlRNAKiwSWf48=";
|
2022-11-16 03:32:27 +00:00
|
|
|
|
2022-09-11 18:53:45 +00:00
|
|
|
buildInputs = lib.optionals stdenv.isDarwin [
|
2021-11-06 20:23:08 +00:00
|
|
|
AppKit
|
2021-10-29 15:42:32 +00:00
|
|
|
Security
|
|
|
|
];
|
2021-10-10 16:13:47 +00:00
|
|
|
|
2022-09-11 18:53:45 +00:00
|
|
|
checkFlags = [
|
|
|
|
# https://github.com/shuttle-hq/synth/issues/309
|
|
|
|
"--skip=docs_blog_2021_08_31_seeding_databases_tutorial_dot_md"
|
|
|
|
];
|
|
|
|
|
2021-10-10 16:13:47 +00:00
|
|
|
# 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 ];
|
|
|
|
};
|
|
|
|
}
|