{ lib, fetchFromGitHub, rustPlatform, installShellFiles, }: rustPlatform.buildRustPackage rec { pname = "shadowenv"; version = "3.3.1"; src = fetchFromGitHub { owner = "Shopify"; repo = "shadowenv"; rev = version; hash = "sha256-s70tNeF0FnWYZ0xLGIL1lTM0LwJdhPPIHrNgrY1YNBs="; }; cargoHash = "sha256-Cg01yM3FbrYpZrv2dhGJnezugNhcuwDcXIU47/AWrC4="; nativeBuildInputs = [ installShellFiles ]; postInstall = '' installManPage man/man1/shadowenv.1 installManPage man/man5/shadowlisp.5 installShellCompletion --bash sh/completions/shadowenv.bash installShellCompletion --fish sh/completions/shadowenv.fish installShellCompletion --zsh sh/completions/_shadowenv ''; preCheck = '' HOME=$TMPDIR ''; meta = with lib; { homepage = "https://shopify.github.io/shadowenv/"; description = "Reversible directory-local environment variable manipulations"; license = licenses.mit; maintainers = [ ]; mainProgram = "shadowenv"; }; }