about summary refs log tree commit diff
path: root/pkgs/by-name/do/dotenvy/package.nix
blob: 210f75fe8cd3456537eff2325a6c501fde0be39a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
{ 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 ];
  };
}