mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-28 00:24:18 +00:00
56 lines
1.1 KiB
Nix
56 lines
1.1 KiB
Nix
{ lib
|
|
, boost
|
|
, fetchFromGitHub
|
|
, libsodium
|
|
, nixVersions
|
|
, nlohmann_json
|
|
, openssl
|
|
, pkg-config
|
|
, rustPlatform
|
|
, nix-update-script
|
|
, nixosTests
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "harmonia";
|
|
version = "1.0.2";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "nix-community";
|
|
repo = "harmonia";
|
|
rev = "refs/tags/harmonia-v${version}";
|
|
hash = "sha256-72nDVSvUfZsLa2HbyricOpA0Eb8gxs/VST25b6DNBpM=";
|
|
};
|
|
|
|
cargoHash = "sha256-gW/OljEngDQddIovtgwghu7uHLFVZHvWIijPgbOOkDc=";
|
|
|
|
doCheck = false;
|
|
|
|
nativeBuildInputs = [
|
|
pkg-config nixVersions.nix_2_24
|
|
];
|
|
|
|
buildInputs = [
|
|
boost
|
|
libsodium
|
|
openssl
|
|
nlohmann_json
|
|
nixVersions.nix_2_24
|
|
];
|
|
|
|
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";
|
|
};
|
|
}
|