blob: 991e750b5c4f3b99bcc0fcf92ad4ef6500de05ff (
about) (
plain)
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
{
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";
};
}
|