9c6ee729d6
GitOrigin-RevId: 6cee3b5893090b0f5f0a06b4cf42ca4e60e5d222
48 lines
933 B
Nix
48 lines
933 B
Nix
{ lib
|
|
, boost
|
|
, fetchFromGitHub
|
|
, libsodium
|
|
, nix
|
|
, pkg-config
|
|
, rustPlatform
|
|
, nix-update-script
|
|
, nixosTests
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "harmonia";
|
|
version = "0.6.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "nix-community";
|
|
repo = pname;
|
|
rev = "refs/tags/${pname}-v${version}";
|
|
hash = "sha256-3tf2lFMrZowRL3v4bkkhyPdULKUZ5w7zJLXlWyMJg3k=";
|
|
};
|
|
|
|
cargoHash = "sha256-g/f0+sj3XBjDFfSCLNlyqFehODsmf87hwbmobo6Tehg=";
|
|
|
|
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 ];
|
|
};
|
|
}
|