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

41 lines
851 B
Nix
Raw Normal View History

2021-10-10 18:13:47 +02:00
{ lib
, rustPlatform
, fetchFromGitHub
, pkg-config
, openssl
, 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-01-12 18:41:25 +01:00
version = "0.6.4";
2021-10-10 18:13:47 +02:00
src = fetchFromGitHub {
owner = "getsynth";
repo = pname;
rev = "v${version}";
2022-01-12 18:41:25 +01:00
sha256 = "sha256-TtIZwGHSfY7Xz6hmrsmaB7dXfjSPcBD4yDyC27TJ4B4=";
2021-10-10 18:13:47 +02:00
};
2022-01-12 18:41:25 +01:00
cargoSha256 = "sha256-V5GA5XR3wkcBdbxRjO8PkF7Q3yg1NVUjXsdAHVip4Bc=";
2021-10-10 18:13:47 +02:00
nativeBuildInputs = [ pkg-config ];
2021-10-29 17:42:32 +02:00
buildInputs = [ openssl ] ++ 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
# 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 ];
};
}