depot/third_party/nixpkgs/pkgs/by-name/fl/flake-checker/package.nix
Default email 7e47f3658e Project import generated by Copybara.
GitOrigin-RevId: 1925c603f17fc89f4c8f6bf6f631a802ad85d784
2024-09-26 11:04:55 +00:00

34 lines
890 B
Nix

{ lib
, rustPlatform
, fetchFromGitHub
, stdenv
, darwin
}:
rustPlatform.buildRustPackage rec {
pname = "flake-checker";
version = "0.2.0";
src = fetchFromGitHub {
owner = "DeterminateSystems";
repo = "flake-checker";
rev = "v${version}";
hash = "sha256-cvjSQNvRnreherInbieJnaanU/TzDAgM544MBi7UWvQ=";
};
cargoHash = "sha256-0iH5owyNfIpRz6nYwrJUoqd9lVGZ3T3K8rmsOk2UoGI=";
buildInputs = lib.optionals stdenv.hostPlatform.isDarwin (with darwin.apple_sdk.frameworks; [
Security
SystemConfiguration
]);
meta = with lib; {
description = "Health checks for your Nix flakes";
homepage = "https://github.com/${src.owner}/${src.repo}";
changelog = "https://github.com/${src.owner}/${src.repo}/releases/tag/${src.rev}";
license = licenses.asl20;
maintainers = with maintainers; [ lucperkins ];
mainProgram = "flake-checker";
};
}