depot/third_party/nixpkgs/pkgs/tools/package-management/harmonia/default.nix
Default email 2c76a4cb41 Project import generated by Copybara.
GitOrigin-RevId: c757e9bd77b16ca2e03c89bf8bc9ecb28e0c06ad
2023-11-16 04:20:00 +00:00

49 lines
963 B
Nix

{ lib
, boost
, fetchFromGitHub
, libsodium
, nix
, pkg-config
, rustPlatform
, nix-update-script
, nixosTests
}:
rustPlatform.buildRustPackage rec {
pname = "harmonia";
version = "0.7.3";
src = fetchFromGitHub {
owner = "nix-community";
repo = pname;
rev = "refs/tags/${pname}-v${version}";
hash = "sha256-XtnK54HvZMKZGSCrVD0FO5PQLMo3Vkj8ezUlsfqStq0=";
};
cargoHash = "sha256-oQVHrfNPhslYk6APB/bhW+h+vk/gNTW/ZypoGGb5zPk=";
nativeBuildInputs = [
pkg-config nix
];
buildInputs = [
boost
libsodium
nix
];
passthru = {
updateScript = nix-update-script {
extraArgs = [ "--version-regex" "harmonia-v(.*)" ];
};
tests = { inherit (nixosTests) harmonia; };
};
meta = with lib; {
description = "Nix binary cache";
homepage = "https://github.com/nix-community/harmonia";
license = licenses.mit;
maintainers = with maintainers; [ mic92 ];
mainProgram = "harmonia";
};
}