about summary refs log tree commit diff
path: root/pkgs/by-name/fl
diff options
context:
space:
mode:
authorPaul Meyer <49727155+katexochen@users.noreply.github.com>2024-02-28 07:24:36 +0100
committerGitHub <noreply@github.com>2024-02-28 07:24:36 +0100
commit8be0b4ff7f111842ec774701477927dea9944f84 (patch)
tree84e8cfca28ac374f3e7dee94049f1ae2936f8d29 /pkgs/by-name/fl
parent7e2688a0bb3cebaefd984731b72b024432026f97 (diff)
parentd8062309ce63c8cebfd642caee9b2e1fd8977f76 (diff)
Merge pull request #272440 from lucperkins/flake-checker-0.1.16
flake-checker: init at 0.1.16
Diffstat (limited to 'pkgs/by-name/fl')
-rw-r--r--pkgs/by-name/fl/flake-checker/package.nix34
1 files changed, 34 insertions, 0 deletions
diff --git a/pkgs/by-name/fl/flake-checker/package.nix b/pkgs/by-name/fl/flake-checker/package.nix
new file mode 100644
index 0000000000000..8c39c66b8553b
--- /dev/null
+++ b/pkgs/by-name/fl/flake-checker/package.nix
@@ -0,0 +1,34 @@
+{ lib
+, rustPlatform
+, fetchFromGitHub
+, stdenv
+, darwin
+}:
+
+rustPlatform.buildRustPackage rec {
+  pname = "flake-checker";
+  version = "0.1.16";
+
+  src = fetchFromGitHub {
+    owner = "DeterminateSystems";
+    repo = "flake-checker";
+    rev = "v${version}";
+    hash = "sha256-n20qW7TS/FSaRseyGFbgJ0qy3ILQRjzEpbFRLT6crI8=";
+  };
+
+  cargoHash = "sha256-inwVhy31T0jFpdAXh3So3kfFezeKkBG9HzxAQ1+7FXQ=";
+
+  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";
+  };
+}