depot/third_party/nixpkgs/pkgs/by-name/do/dotenvy/package.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

25 lines
660 B
Nix

{ lib, fetchCrate, rustPlatform }:
rustPlatform.buildRustPackage rec {
pname = "dotenvy";
version = "0.15.7";
src = fetchCrate {
inherit pname version;
hash = "sha256-virK/TpYBmwTf5UCQCqC/df8iKYAzPBfsQ1nQkFKF2Y=";
};
cargoHash = "sha256-qjFTv15FSvgYgQ4nTEIo0KUqaCbg6E+W5B2B5BH6sp4=";
cargoBuildFlags = [ "--bin=dotenvy" "--features=cli" ];
# just run unittests and skip doc-tests
cargoTestFlags = [ "--lib" ];
meta = {
description = "Loads environment variables from a .env file";
homepage = "https://github.com/allan2/dotenvy";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ phlip9 ];
};
}