nixpkgs/pkgs/tools/misc/synth/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

42 lines
920 B
Nix
Raw Normal View History

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