nixpkgs/pkgs/tools/package-management/harmonia/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

49 lines
933 B
Nix
Raw Normal View History

2022-10-18 22:40:55 +02:00
{ lib
, boost
, fetchFromGitHub
, libsodium
, nix
, pkg-config
, rustPlatform
, nix-update-script
2023-05-07 18:34:09 +02:00
, nixosTests
2022-10-18 22:40:55 +02:00
}:
rustPlatform.buildRustPackage rec {
pname = "harmonia";
2023-05-10 17:57:29 +02:00
version = "0.6.4";
2022-10-18 22:40:55 +02:00
src = fetchFromGitHub {
owner = "nix-community";
2022-10-18 22:40:55 +02:00
repo = pname;
rev = "refs/tags/${pname}-v${version}";
2023-05-10 17:57:29 +02:00
hash = "sha256-JH0tdUCadvovAJclpx7Fn1oD+POFpBFHdullRTcFaVQ=";
2022-10-18 22:40:55 +02:00
};
2023-05-10 17:57:29 +02:00
cargoHash = "sha256-Wa+7Vo5VWmx47Uf6YtlzHReoWY44SxdOnscSFu74OSM=";
2022-10-18 22:40:55 +02:00
nativeBuildInputs = [
2023-04-04 11:32:35 +02:00
pkg-config nix
2022-10-18 22:40:55 +02:00
];
buildInputs = [
boost
libsodium
nix
];
passthru = {
updateScript = nix-update-script {
extraArgs = [ "--version-regex" "harmonia-v(.*)" ];
};
2023-05-07 18:34:09 +02:00
tests = { inherit (nixosTests) harmonia; };
};
2022-10-18 22:40:55 +02:00
meta = with lib; {
description = "Nix binary cache";
2023-05-09 12:34:16 +02:00
homepage = "https://github.com/nix-community/harmonia";
2022-10-18 22:40:55 +02:00
license = licenses.mit;
maintainers = with maintainers; [ mic92 ];
2022-10-18 22:40:55 +02:00
};
}