nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 rustPlatform,
4 fetchFromGitHub,
5 makeWrapper,
6 pkg-config,
7 openssl,
8}:
9
10rustPlatform.buildRustPackage rec {
11 pname = "riff";
12 version = "1.0.3";
13
14 src = fetchFromGitHub {
15 owner = "DeterminateSystems";
16 repo = "riff";
17 rev = "v${version}";
18 hash = "sha256-ThHkEvu+lWojHmEgcrwdZDPROfxznB7vv78msyZf90A=";
19 };
20
21 cargoHash = "sha256-JghCYYDf2keV9UFU5m+qDIIb7+V0aPwVzR41J01pXcI=";
22
23 nativeBuildInputs = [
24 makeWrapper
25 pkg-config
26 ];
27
28 buildInputs = [
29 openssl
30 ];
31
32 postInstall = ''
33 wrapProgram $out/bin/riff --set-default RIFF_DISABLE_TELEMETRY true
34 '';
35
36 meta = {
37 description = "Tool that automatically provides external dependencies for software projects";
38 mainProgram = "riff";
39 homepage = "https://riff.sh";
40 changelog = "https://github.com/DeterminateSystems/riff/releases/tag/v${version}";
41 license = lib.licenses.mpl20;
42 maintainers = with lib.maintainers; [ figsoda ];
43 };
44}