python3Packages.orjson: Disable failing tests on 32 bit
[NixPkgs.git] / pkgs / tools / misc / shadowenv / default.nix
bloba4f8fff4ae2000de1f5093f43f380fcccdd5eb89
1 { lib, stdenv, fetchFromGitHub, rustPlatform, installShellFiles, Security }:
3 rustPlatform.buildRustPackage rec {
4   pname = "shadowenv";
5   version = "2.0.6";
7   src = fetchFromGitHub {
8     owner = "Shopify";
9     repo = pname;
10     rev = version;
11     sha256 = "sha256-OfrK5eQ2oJ7ZeUem4PZPE2tsjIObQ+aao6GrtrK8AqA=";
12   };
14   cargoSha256 = "sha256-gno44ZdLthcp5/+NP12d0C+x1jrmJHNkHSnyuHWl3Zk=";
16   nativeBuildInputs = [ installShellFiles ];
18   buildInputs = lib.optionals stdenv.isDarwin [ Security ];
20   postInstall = ''
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
26   '';
28   meta = with lib; {
29     homepage = "https://shopify.github.io/shadowenv/";
30     description = "reversible directory-local environment variable manipulations";
31     license = licenses.mit;
32     maintainers = [ maintainers.marsam ];
33   };