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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

41 lines
854 B
Nix
Raw Normal View History

2021-10-10 16:13:47 +00:00
{ lib
, rustPlatform
, fetchFromGitHub
, pkg-config
, openssl
, stdenv
2021-11-06 20:23:08 +00:00
, AppKit
2021-10-10 16:13:47 +00:00
, Security
}:
rustPlatform.buildRustPackage rec {
pname = "synth";
2022-02-13 09:03:48 +00:00
version = "0.6.5-r1";
2021-10-10 16:13:47 +00:00
src = fetchFromGitHub {
owner = "getsynth";
repo = pname;
rev = "v${version}";
2022-02-13 09:03:48 +00:00
sha256 = "sha256-AcAZjS2Wo0PRngf0eYrduEd6rZX5YpYxsWEp0wf9jvg=";
2021-10-10 16:13:47 +00:00
};
2022-02-13 09:03:48 +00:00
cargoSha256 = "sha256-mMGlUCvbXaO0XfMwVtpq7HENoSaXrQU7GSh7/OhYdus=";
2021-10-10 16:13:47 +00:00
nativeBuildInputs = [ pkg-config ];
2021-10-29 15:42:32 +00:00
buildInputs = [ openssl ] ++ lib.optionals stdenv.isDarwin [
2021-11-06 20:23:08 +00:00
AppKit
2021-10-29 15:42:32 +00:00
Security
];
2021-10-10 16:13:47 +00: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 ];
};
}