ocamlPackages.hxd: 0.3.2 -> 0.3.3 (#364231)
[NixPkgs.git] / pkgs / by-name / ri / riff / package.nix
blob9bec268b41e635a7dfe2da3f7f6203e2dc58ea78
2   lib,
3   rustPlatform,
4   fetchFromGitHub,
5   makeWrapper,
6   pkg-config,
7   openssl,
8   stdenv,
9   darwin,
12 rustPlatform.buildRustPackage rec {
13   pname = "riff";
14   version = "1.0.3";
16   src = fetchFromGitHub {
17     owner = "DeterminateSystems";
18     repo = pname;
19     rev = "v${version}";
20     hash = "sha256-ThHkEvu+lWojHmEgcrwdZDPROfxznB7vv78msyZf90A=";
21   };
23   cargoHash = "sha256-knA08KqjtI2FZUbllfVETxDqi/r4Gf3VuLE17JujTzc=";
25   nativeBuildInputs = [
26     makeWrapper
27     pkg-config
28   ];
30   buildInputs =
31     [
32       openssl
33     ]
34     ++ lib.optionals stdenv.hostPlatform.isDarwin [
35       darwin.apple_sdk.frameworks.Security
36     ];
38   postInstall = ''
39     wrapProgram $out/bin/riff --set-default RIFF_DISABLE_TELEMETRY true
40   '';
42   meta = with lib; {
43     description = "Tool that automatically provides external dependencies for software projects";
44     mainProgram = "riff";
45     homepage = "https://riff.sh";
46     changelog = "https://github.com/DeterminateSystems/riff/releases/tag/v${version}";
47     license = licenses.mpl20;
48     maintainers = with maintainers; [ figsoda ];
49   };