depot/third_party/nixpkgs/pkgs/tools/package-management/harmonia/default.nix
Default email ed0c4a69f0 Project import generated by Copybara.
GitOrigin-RevId: e3652e0735fbec227f342712f180f4f21f0594f2
2023-03-31 00:05:00 +02:00

39 lines
724 B
Nix

{ lib
, boost
, fetchFromGitHub
, libsodium
, nix
, pkg-config
, rustPlatform
}:
rustPlatform.buildRustPackage rec {
pname = "harmonia";
version = "0.6.0";
src = fetchFromGitHub {
owner = "nix-community";
repo = pname;
rev = "refs/tags/${pname}-v${version}";
hash = "sha256-BD61xBNlHvw3gsgfU2FgNsGpqkHbGZ+qvVfBYgQ1TJY=";
};
cargoHash = "sha256-xok7LutDrrN+lg+Nj8bG/XjMytybo+DOrd7o64PXBIE=";
nativeBuildInputs = [
pkg-config
];
buildInputs = [
boost
libsodium
nix
];
meta = with lib; {
description = "Nix binary cache";
homepage = "https://github.com/helsinki-systems/harmonia";
license = licenses.mit;
maintainers = with maintainers; [ fab ];
};
}