diff options
author | figsoda <figsoda@pm.me> | 2023-01-11 17:16:50 -0500 |
---|---|---|
committer | figsoda <figsoda@pm.me> | 2023-01-14 12:45:05 -0500 |
commit | 50ebb3bad826f97ae4af48a70393b5b07e921395 (patch) | |
tree | 875be099d8720621005a1bd712cc3cad401d3580 /pkgs/development/tools/misc/riff | |
parent | 506d6390a311a36a2cf2fd7b610c43c05bdef23a (diff) |
riff: init at 1.0.3
Diffstat (limited to 'pkgs/development/tools/misc/riff')
-rw-r--r-- | pkgs/development/tools/misc/riff/default.nix | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/pkgs/development/tools/misc/riff/default.nix b/pkgs/development/tools/misc/riff/default.nix new file mode 100644 index 0000000000000..94096a2bc5e2e --- /dev/null +++ b/pkgs/development/tools/misc/riff/default.nix @@ -0,0 +1,46 @@ +{ lib +, rustPlatform +, fetchFromGitHub +, makeWrapper +, pkg-config +, openssl +, stdenv +, darwin +}: + +rustPlatform.buildRustPackage rec { + pname = "riff"; + version = "1.0.3"; + + src = fetchFromGitHub { + owner = "DeterminateSystems"; + repo = pname; + rev = "v${version}"; + hash = "sha256-ThHkEvu+lWojHmEgcrwdZDPROfxznB7vv78msyZf90A="; + }; + + cargoHash = "sha256-knA08KqjtI2FZUbllfVETxDqi/r4Gf3VuLE17JujTzc="; + + nativeBuildInputs = [ + makeWrapper + pkg-config + ]; + + buildInputs = [ + openssl + ] ++ lib.optionals stdenv.isDarwin [ + darwin.apple_sdk.frameworks.Security + ]; + + postInstall = '' + wrapProgram $out/bin/riff --set-default RIFF_DISABLE_TELEMETRY true + ''; + + meta = with lib; { + description = "A tool that automatically provides external dependencies for software projects"; + homepage = "https://riff.sh"; + changelog = "https://github.com/DeterminateSystems/riff/releases/tag/v${version}"; + license = licenses.mpl20; + maintainers = with maintainers; [ figsoda ]; + }; +} |