Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at fix-function-merge 47 lines 1.0 kB view raw
1{ lib 2, rustPlatform 3, fetchFromGitHub 4, makeWrapper 5, pkg-config 6, openssl 7, stdenv 8, darwin 9}: 10 11rustPlatform.buildRustPackage rec { 12 pname = "riff"; 13 version = "1.0.3"; 14 15 src = fetchFromGitHub { 16 owner = "DeterminateSystems"; 17 repo = pname; 18 rev = "v${version}"; 19 hash = "sha256-ThHkEvu+lWojHmEgcrwdZDPROfxznB7vv78msyZf90A="; 20 }; 21 22 cargoHash = "sha256-knA08KqjtI2FZUbllfVETxDqi/r4Gf3VuLE17JujTzc="; 23 24 nativeBuildInputs = [ 25 makeWrapper 26 pkg-config 27 ]; 28 29 buildInputs = [ 30 openssl 31 ] ++ lib.optionals stdenv.isDarwin [ 32 darwin.apple_sdk.frameworks.Security 33 ]; 34 35 postInstall = '' 36 wrapProgram $out/bin/riff --set-default RIFF_DISABLE_TELEMETRY true 37 ''; 38 39 meta = with lib; { 40 description = "Tool that automatically provides external dependencies for software projects"; 41 mainProgram = "riff"; 42 homepage = "https://riff.sh"; 43 changelog = "https://github.com/DeterminateSystems/riff/releases/tag/v${version}"; 44 license = licenses.mpl20; 45 maintainers = with maintainers; [ figsoda ]; 46 }; 47}