nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at litex 41 lines 920 B view raw
1{ lib 2, rustPlatform 3, fetchFromGitHub 4, stdenv 5, AppKit 6, Security 7}: 8 9rustPlatform.buildRustPackage rec { 10 pname = "synth"; 11 version = "0.6.9"; 12 13 src = fetchFromGitHub { 14 owner = "shuttle-hq"; 15 repo = pname; 16 rev = "v${version}"; 17 sha256 = "sha256-/z2VEfeCCuffxlMh4WOpYkMSAgmh+sbx3ajcD5d4DdE="; 18 }; 19 20 cargoSha256 = "sha256-i2Pp9sfTBth3DtrQ99Vw+KLnGECrkqtlRNAKiwSWf48="; 21 22 buildInputs = lib.optionals stdenv.isDarwin [ 23 AppKit 24 Security 25 ]; 26 27 checkFlags = [ 28 # https://github.com/shuttle-hq/synth/issues/309 29 "--skip=docs_blog_2021_08_31_seeding_databases_tutorial_dot_md" 30 ]; 31 32 # requires unstable rust features 33 RUSTC_BOOTSTRAP = 1; 34 35 meta = with lib; { 36 description = "A 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 }; 41}