depot/third_party/nixpkgs/pkgs/tools/package-management/harmonia/default.nix
Default email 87f9c27ba9 Project import generated by Copybara.
GitOrigin-RevId: fe2ecaf706a5907b5e54d979fbde4924d84b65fc
2023-04-12 14:48:02 +02:00

39 lines
728 B
Nix

{ lib
, boost
, fetchFromGitHub
, libsodium
, nix
, pkg-config
, rustPlatform
}:
rustPlatform.buildRustPackage rec {
pname = "harmonia";
version = "0.6.1";
src = fetchFromGitHub {
owner = "nix-community";
repo = pname;
rev = "refs/tags/${pname}-v${version}";
hash = "sha256-fT9CJ/WAH5ESU4Ja062U/qNWDmhEfHI1XctnFjgBJ+A=";
};
cargoHash = "sha256-rcA94i7JDUBH2JrbWbEQLBMV9R1rBXnS3pNEmbOUr9c=";
nativeBuildInputs = [
pkg-config nix
];
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 ];
};
}