2022-10-21 18:38:19 +00:00
|
|
|
{ lib
|
|
|
|
, boost
|
|
|
|
, fetchFromGitHub
|
|
|
|
, libsodium
|
2024-01-02 11:29:13 +00:00
|
|
|
, nixVersions
|
2022-10-21 18:38:19 +00:00
|
|
|
, pkg-config
|
|
|
|
, rustPlatform
|
2023-05-24 13:37:59 +00:00
|
|
|
, nix-update-script
|
|
|
|
, nixosTests
|
2022-10-21 18:38:19 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "harmonia";
|
2024-06-05 15:53:02 +00:00
|
|
|
version = "0.8.0";
|
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}";
|
2024-06-05 15:53:02 +00:00
|
|
|
hash = "sha256-+V0V/l9Q7HR3J0aH1UWc1qHrpGiRWd6B4R+3MECFORg=";
|
2022-10-21 18:38:19 +00:00
|
|
|
};
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
cargoHash = "sha256-3Nx1YXjbYVOD7pYgI9Cp5Vsxv1j1XeX6pCl4+Q1OtVs=";
|
|
|
|
|
|
|
|
doCheck = false;
|
2022-10-21 18:38:19 +00:00
|
|
|
|
|
|
|
nativeBuildInputs = [
|
2024-04-21 15:54:59 +00:00
|
|
|
pkg-config nixVersions.nix_2_21
|
2022-10-21 18:38:19 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
boost
|
|
|
|
libsodium
|
2024-04-21 15:54:59 +00:00
|
|
|
nixVersions.nix_2_21
|
2022-10-21 18:38:19 +00:00
|
|
|
];
|
|
|
|
|
2023-05-24 13:37:59 +00:00
|
|
|
passthru = {
|
|
|
|
updateScript = nix-update-script {
|
|
|
|
extraArgs = [ "--version-regex" "harmonia-v(.*)" ];
|
|
|
|
};
|
|
|
|
tests = { inherit (nixosTests) harmonia; };
|
|
|
|
};
|
|
|
|
|
2022-10-21 18:38:19 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Nix binary cache";
|
2023-05-24 13:37:59 +00:00
|
|
|
homepage = "https://github.com/nix-community/harmonia";
|
2022-10-21 18:38:19 +00:00
|
|
|
license = licenses.mit;
|
2023-05-24 13:37:59 +00:00
|
|
|
maintainers = with maintainers; [ mic92 ];
|
2023-08-04 22:07:22 +00:00
|
|
|
mainProgram = "harmonia";
|
2022-10-21 18:38:19 +00:00
|
|
|
};
|
|
|
|
}
|