2022-10-21 18:38:19 +00:00
|
|
|
{ lib
|
|
|
|
, boost
|
|
|
|
, fetchFromGitHub
|
|
|
|
, libsodium
|
|
|
|
, nix
|
|
|
|
, pkg-config
|
|
|
|
, rustPlatform
|
|
|
|
}:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "harmonia";
|
2023-04-12 12:48:02 +00:00
|
|
|
version = "0.6.1";
|
2022-10-21 18:38:19 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2023-03-30 22:05:00 +00:00
|
|
|
owner = "nix-community";
|
2022-10-21 18:38:19 +00:00
|
|
|
repo = pname;
|
|
|
|
rev = "refs/tags/${pname}-v${version}";
|
2023-04-12 12:48:02 +00:00
|
|
|
hash = "sha256-fT9CJ/WAH5ESU4Ja062U/qNWDmhEfHI1XctnFjgBJ+A=";
|
2022-10-21 18:38:19 +00:00
|
|
|
};
|
|
|
|
|
2023-04-12 12:48:02 +00:00
|
|
|
cargoHash = "sha256-rcA94i7JDUBH2JrbWbEQLBMV9R1rBXnS3pNEmbOUr9c=";
|
2022-10-21 18:38:19 +00:00
|
|
|
|
|
|
|
nativeBuildInputs = [
|
2023-04-12 12:48:02 +00:00
|
|
|
pkg-config nix
|
2022-10-21 18:38:19 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|