colmena: 0.2.2 -> 0.3.0

This commit is contained in:
Zhaofeng Li 2022-04-27 17:45:06 -07:00 committed by Bjørn Forsman
parent 1df86fce58
commit 6c69577b23

View file

@ -1,20 +1,25 @@
{ stdenv, lib, rustPlatform, fetchFromGitHub, installShellFiles, colmena, testers }:
{ stdenv, lib, rustPlatform, fetchFromGitHub, installShellFiles, nix-eval-jobs
, colmena, testers }:
rustPlatform.buildRustPackage rec {
pname = "colmena";
version = "0.2.2";
version = "0.3.0";
src = fetchFromGitHub {
owner = "zhaofengli";
repo = "colmena";
rev = "v${version}";
sha256 = "sha256-VsqFiqZUjGpDZfw6ws1rvqm/NGUfFBXHa0N8ZkBaMh8=";
sha256 = "sha256-aGpMiY9pS2616AfAVWA87tULKatDYF2kCKxwYstK8V0=";
};
cargoSha256 = "sha256-NVvPh0+53YIm5Kb/lNyXb7M3bbADBVdsTaPptyb37lw=";
cargoSha256 = "sha256-ckCArDFjVwVWWK0Ffj0AYe411b9xU33CBc1zeCh2kns=";
nativeBuildInputs = [ installShellFiles ];
buildInputs = [ nix-eval-jobs ];
NIX_EVAL_JOBS = "${nix-eval-jobs}/bin/nix-eval-jobs";
postInstall = lib.optionalString (stdenv.hostPlatform == stdenv.buildPlatform) ''
installShellCompletion --cmd colmena \
--bash <($out/bin/colmena gen-completions bash) \
@ -37,6 +42,6 @@ rustPlatform.buildRustPackage rec {
homepage = "https://zhaofengli.github.io/colmena/${passthru.apiVersion}";
license = licenses.mit;
maintainers = with maintainers; [ zhaofengli ];
platforms = platforms.linux;
platforms = platforms.linux ++ platforms.darwin;
};
}