anvil-editor: init at 0.4
[NixPkgs.git] / pkgs / tools / misc / synth / default.nix
blob4977372ee4ee4c1a8837b37e3ae722529c0f45b4
1 { lib
2 , rustPlatform
3 , fetchFromGitHub
4 , stdenv
5 , AppKit
6 , Security
7 }:
9 rustPlatform.buildRustPackage rec {
10   pname = "synth";
11   version = "0.6.9";
13   src = fetchFromGitHub {
14     owner = "shuttle-hq";
15     repo = pname;
16     rev = "v${version}";
17     sha256 = "sha256-/z2VEfeCCuffxlMh4WOpYkMSAgmh+sbx3ajcD5d4DdE=";
18   };
20   cargoHash = "sha256-i2Pp9sfTBth3DtrQ99Vw+KLnGECrkqtlRNAKiwSWf48=";
22   buildInputs = lib.optionals stdenv.hostPlatform.isDarwin [
23     AppKit
24     Security
25   ];
27   checkFlags = [
28     # https://github.com/shuttle-hq/synth/issues/309
29     "--skip=docs_blog_2021_08_31_seeding_databases_tutorial_dot_md"
30   ];
32   # requires unstable rust features
33   RUSTC_BOOTSTRAP = 1;
35   meta = with lib; {
36     description = "Tool for generating realistic data using a declarative data model";
37     homepage = "https://github.com/getsynth/synth";
38     license = licenses.asl20;
39     maintainers = with maintainers; [ figsoda ];
40   };