From 072b07330975ba8e147baef49719861adb669b4e Mon Sep 17 00:00:00 2001 From: figsoda Date: Tue, 26 Oct 2021 20:58:26 -0400 Subject: [PATCH] statix: init at 0.3.1 --- pkgs/tools/nix/statix/default.nix | 26 ++++++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 28 insertions(+) create mode 100644 pkgs/tools/nix/statix/default.nix diff --git a/pkgs/tools/nix/statix/default.nix b/pkgs/tools/nix/statix/default.nix new file mode 100644 index 000000000000..cffc2b0029df --- /dev/null +++ b/pkgs/tools/nix/statix/default.nix @@ -0,0 +1,26 @@ +{ lib, rustPlatform, fetchFromGitHub, withJson ? true }: + +rustPlatform.buildRustPackage rec { + pname = "statix"; + version = "0.3.1"; + + src = fetchFromGitHub { + owner = "nerdypepper"; + repo = pname; + rev = "v${version}"; + sha256 = "sha256-Jh3ErzK8vqEdDtZP7O/PAmHQznUTB18nCQwfckFxyLA="; + }; + + cargoSha256 = "sha256-y+vBHAHTe++tYOWWQ5ioFlprRfDximZE8KSGNNBSPAk="; + + cargoBuildFlags = lib.optionals withJson [ "--features" "json" ]; + + cargoCheckFlags = cargoBuildFlags; + + meta = with lib; { + description = "Lints and suggestions for the nix programming language"; + homepage = "https://github.com/nerdypepper/statix"; + license = licenses.mit; + maintainers = with maintainers; [ figsoda nerdypepper ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index bfe7a41c4b7e..da84202c601d 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -15167,6 +15167,8 @@ with pkgs; sselp = callPackage ../tools/X11/sselp{ }; + statix = callPackage ../tools/nix/statix { }; + stm32cubemx = callPackage ../development/embedded/stm32/stm32cubemx { }; stm32flash = callPackage ../development/embedded/stm32/stm32flash { };