2024-02-29 20:09:43 +00:00
|
|
|
{ lib
|
|
|
|
, rustPlatform
|
|
|
|
, fetchFromGitHub
|
|
|
|
, stdenv
|
|
|
|
, darwin
|
|
|
|
}:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "flake-checker";
|
2024-06-05 15:53:02 +00:00
|
|
|
version = "0.1.19";
|
2024-02-29 20:09:43 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "DeterminateSystems";
|
|
|
|
repo = "flake-checker";
|
|
|
|
rev = "v${version}";
|
2024-06-05 15:53:02 +00:00
|
|
|
hash = "sha256-KJTObuHJQjIgg/5A25Ee+7s2SrmtyYFnvcnklYhSCNE=";
|
2024-02-29 20:09:43 +00:00
|
|
|
};
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
cargoHash = "sha256-ADqc7H2MClXyYEw/lc9F4HAfpHrDc/lqL/BIL/PTZro=";
|
2024-02-29 20:09:43 +00:00
|
|
|
|
|
|
|
buildInputs = lib.optionals stdenv.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";
|
|
|
|
};
|
|
|
|
}
|