summary refs log tree commit diff
path: root/pkgs/tools/misc/synth
diff options
context:
space:
mode:
authorfigsoda <figsoda@pm.me>2021-10-10 12:13:47 -0400
committerfigsoda <figsoda@pm.me>2021-10-10 12:16:27 -0400
commit6b9f8629d2a612bd8a9425542fe2ed1cb214f775 (patch)
tree47891388d142bfcb545431562e3ae36c32b13b03 /pkgs/tools/misc/synth
parenta74daa0ec496a1039de74075d4db093764b2a8ec (diff)
downloadnixpkgs-6b9f8629d2a612bd8a9425542fe2ed1cb214f775.tar
nixpkgs-6b9f8629d2a612bd8a9425542fe2ed1cb214f775.tar.gz
nixpkgs-6b9f8629d2a612bd8a9425542fe2ed1cb214f775.tar.bz2
nixpkgs-6b9f8629d2a612bd8a9425542fe2ed1cb214f775.tar.lz
nixpkgs-6b9f8629d2a612bd8a9425542fe2ed1cb214f775.tar.xz
nixpkgs-6b9f8629d2a612bd8a9425542fe2ed1cb214f775.tar.zst
nixpkgs-6b9f8629d2a612bd8a9425542fe2ed1cb214f775.zip
synth: init at 0.5.6
Diffstat (limited to 'pkgs/tools/misc/synth')
-rw-r--r--pkgs/tools/misc/synth/default.nix36
1 files changed, 36 insertions, 0 deletions
diff --git a/pkgs/tools/misc/synth/default.nix b/pkgs/tools/misc/synth/default.nix
new file mode 100644
index 00000000000..31d0b6e7d32
--- /dev/null
+++ b/pkgs/tools/misc/synth/default.nix
@@ -0,0 +1,36 @@
+{ lib
+, rustPlatform
+, fetchFromGitHub
+, pkg-config
+, openssl
+, stdenv
+, Security
+}:
+
+rustPlatform.buildRustPackage rec {
+  pname = "synth";
+  version = "0.5.6";
+
+  src = fetchFromGitHub {
+    owner = "getsynth";
+    repo = pname;
+    rev = "v${version}";
+    sha256 = "06kgzaja04553gaxrfz6d1rqi3xwa6ijl0q6425fg0mqq9ifv7xk";
+  };
+
+  cargoSha256 = "sha256-bjda4uE5K+cJkS2TsTv7FN3H6q3cElRr674FTKaIexA=";
+
+  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 ];
+  };
+}