nixpkgs/pkgs/by-name/fl/flake-checker/package.nix

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

35 lines
878 B
Nix
Raw Normal View History

2023-12-06 09:11:44 +00:00
{ lib
, rustPlatform
, fetchFromGitHub
, stdenv
, darwin
}:
rustPlatform.buildRustPackage rec {
pname = "flake-checker";
2024-04-13 00:53:23 +00:00
version = "0.1.18";
2023-12-06 09:11:44 +00:00
src = fetchFromGitHub {
owner = "DeterminateSystems";
repo = "flake-checker";
rev = "v${version}";
2024-04-13 00:53:23 +00:00
hash = "sha256-XoYpiqatCQCYuKpVGlWcteVp71LXh+leFEtbL5lb0rs=";
2023-12-06 09:11:44 +00:00
};
2024-04-13 00:53:23 +00:00
cargoHash = "sha256-LM0tYSRhM4GGb/Pa5l2xMAJ26ZyAuSEKlZansE/VNNw=";
2023-12-06 09:11:44 +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";
};
}