2022-06-16 17:23:12 +00:00
|
|
|
{ stdenv
|
|
|
|
, lib
|
2021-02-05 17:12:51 +00:00
|
|
|
, rustPlatform
|
|
|
|
, fetchFromGitHub
|
2022-07-14 12:49:19 +00:00
|
|
|
, Security
|
2021-02-05 17:12:51 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "dotenv-linter";
|
2023-02-02 18:25:31 +00:00
|
|
|
version = "3.3.0";
|
2021-02-05 17:12:51 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "dotenv-linter";
|
|
|
|
repo = "dotenv-linter";
|
|
|
|
rev = "v${version}";
|
2023-02-02 18:25:31 +00:00
|
|
|
sha256 = "sha256-HCP1OUWm/17e73TbinmDxYUi18/KXxppstyUSixjlSo=";
|
2021-02-05 17:12:51 +00:00
|
|
|
};
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
cargoSha256 = "sha256-4r4NTq2rLnpmm/nwxJ9RoN2+JrUI6XKGfYFI78NY710=";
|
2021-02-05 17:12:51 +00:00
|
|
|
|
2022-07-14 12:49:19 +00:00
|
|
|
buildInputs = lib.optional stdenv.isDarwin Security;
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Lightning-fast linter for .env files. Written in Rust";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "dotenv-linter";
|
2021-02-05 17:12:51 +00:00
|
|
|
homepage = "https://dotenv-linter.github.io";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ humancalico ];
|
|
|
|
};
|
|
|
|
}
|