diff options
author | figsoda <figsoda@pm.me> | 2023-01-14 18:32:26 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-14 18:32:26 -0500 |
commit | 752f2732d87e7a587d3c7dea781c82d59dbc42a3 (patch) | |
tree | b9c8b0b22c9e302f5117a44aa15948d78ac6a645 | |
parent | 1e47b50d856a165f93fb83f4d360e4ff5407651b (diff) | |
parent | 50ebb3bad826f97ae4af48a70393b5b07e921395 (diff) |
Merge pull request #210266 from figsoda/riff
riff: init at 1.0.3
-rw-r--r-- | pkgs/development/tools/misc/riff/default.nix | 46 | ||||
-rw-r--r-- | pkgs/top-level/all-packages.nix | 2 |
2 files changed, 48 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 000000000000..94096a2bc5e2 --- /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 ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 648286837d61..d6f574f6464d 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -18225,6 +18225,8 @@ with pkgs; revive = callPackage ../development/tools/revive { }; + riff = callPackage ../development/tools/misc/riff { }; + rman = callPackage ../development/tools/misc/rman { }; rnginline = with python3Packages; toPythonApplication rnginline; |