Merge pull request #329823 from ExpidusOS/fix/pkgsllvm/elfutils
[NixPkgs.git] / pkgs / by-name / fl / flake-checker / package.nix
blob5ccab79d971808be9ad42f234fc268e30293a43e
1 { lib
2 , rustPlatform
3 , fetchFromGitHub
4 , stdenv
5 , darwin
6 }:
8 rustPlatform.buildRustPackage rec {
9   pname = "flake-checker";
10   version = "0.2.0";
12   src = fetchFromGitHub {
13     owner = "DeterminateSystems";
14     repo = "flake-checker";
15     rev = "v${version}";
16     hash = "sha256-cvjSQNvRnreherInbieJnaanU/TzDAgM544MBi7UWvQ=";
17   };
19   cargoHash = "sha256-0iH5owyNfIpRz6nYwrJUoqd9lVGZ3T3K8rmsOk2UoGI=";
21   buildInputs = lib.optionals stdenv.isDarwin (with darwin.apple_sdk.frameworks; [
22     Security
23     SystemConfiguration
24   ]);
26   meta = with lib; {
27     description = "Health checks for your Nix flakes";
28     homepage = "https://github.com/${src.owner}/${src.repo}";
29     changelog = "https://github.com/${src.owner}/${src.repo}/releases/tag/${src.rev}";
30     license = licenses.asl20;
31     maintainers = with maintainers; [ lucperkins ];
32     mainProgram = "flake-checker";
33   };