1 { lib, stdenv, fetchFromGitHub, rustPlatform, installShellFiles, Security }:
3 rustPlatform.buildRustPackage rec {
7 src = fetchFromGitHub {
11 sha256 = "sha256-OfrK5eQ2oJ7ZeUem4PZPE2tsjIObQ+aao6GrtrK8AqA=";
14 cargoSha256 = "sha256-gno44ZdLthcp5/+NP12d0C+x1jrmJHNkHSnyuHWl3Zk=";
16 nativeBuildInputs = [ installShellFiles ];
18 buildInputs = lib.optionals stdenv.isDarwin [ Security ];
21 installManPage man/man1/shadowenv.1
22 installManPage man/man5/shadowlisp.5
23 installShellCompletion --bash sh/completions/shadowenv.bash
24 installShellCompletion --fish sh/completions/shadowenv.fish
25 installShellCompletion --zsh sh/completions/_shadowenv
29 homepage = "https://shopify.github.io/shadowenv/";
30 description = "reversible directory-local environment variable manipulations";
31 license = licenses.mit;
32 maintainers = [ maintainers.marsam ];