git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #141190 from figsoda/synth
commit3814bbc65f10dd4813f4b312a5c4221524c67b15 authorSandro <sandro.jaeckel@gmail.com> dateSun 10 Oct 2021, 18:41 (5 years ago) parentf26d4656b9f862
2 files changed+40
pkgs/tools/misc/synth/default.nix+36 pkgs/top-level/all-packages.nix+4
pkgs/tools/misc/synth/default.nixnew file+36
@@ -0,0 +1,36 @@
1+{ lib
2+, rustPlatform
3+, fetchFromGitHub
4+, pkg-config
5+, openssl
6+, stdenv
7+, Security
8+}:
9+
10+rustPlatform.buildRustPackage rec {
11+ pname = "synth";
12+ version = "0.5.6";
13+
14+ src = fetchFromGitHub {
15+ owner = "getsynth";
16+ repo = pname;
17+ rev = "v${version}";
18+ sha256 = "06kgzaja04553gaxrfz6d1rqi3xwa6ijl0q6425fg0mqq9ifv7xk";
19+ };
20+
21+ cargoSha256 = "sha256-bjda4uE5K+cJkS2TsTv7FN3H6q3cElRr674FTKaIexA=";
22+
23+ nativeBuildInputs = [ pkg-config ];
24+
25+ buildInputs = [ openssl ] ++ lib.optional stdenv.isDarwin Security;
26+
27+ # requires unstable rust features
28+ RUSTC_BOOTSTRAP = 1;
29+
30+ meta = with lib; {
31+ description = "A tool for generating realistic data using a declarative data model";
32+ homepage = "https://github.com/getsynth/synth";
33+ license = licenses.asl20;
34+ maintainers = with maintainers; [ figsoda ];
35+ };
36+}
pkgs/top-level/all-packages.nix+4
@@ -3449,6 +3449,10 @@ with pkgs;
34493449
34503450 sydbox = callPackage ../os-specific/linux/sydbox { };
34513451
3452+ synth = callPackage ../tools/misc/synth {
3453+ inherit (darwin.apple_sdk.frameworks) Security;
3454+ };
3455+
34523456 syscall_limiter = callPackage ../os-specific/linux/syscall_limiter {};
34533457
34543458 syslogng = callPackage ../tools/system/syslog-ng { };