2020-04-08 12:20:00 +03:00
|
|
|
{ stdenv, fetchFromGitHub, rustPlatform, installShellFiles, Security }:
|
2019-10-04 12:20:00 +03:00
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "shadowenv";
|
2020-04-08 12:20:00 +03:00
|
|
|
version = "2.0.0";
|
2019-10-04 12:20:00 +03:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Shopify";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2020-04-08 12:20:00 +03:00
|
|
|
sha256 = "1fjqm4qr85wb0i3vazp0w74izfzvkycdii7dlpdp5zs8jgb35pdh";
|
2019-10-04 12:20:00 +03:00
|
|
|
};
|
|
|
|
|
2020-04-08 12:20:00 +03:00
|
|
|
cargoSha256 = "1n8qh730nhdmpm08mm2ppcl3nkcgm50cyz9q5h6dlzq4bv4rijp4";
|
|
|
|
|
|
|
|
nativeBuildInputs = [ installShellFiles ];
|
2019-10-04 12:20:00 +03:00
|
|
|
|
|
|
|
buildInputs = stdenv.lib.optionals stdenv.isDarwin [ Security ];
|
|
|
|
|
2020-04-08 12:20:00 +03:00
|
|
|
postInstall = ''
|
|
|
|
installManPage man/man1/shadowenv.1
|
|
|
|
installManPage man/man5/shadowlisp.5
|
|
|
|
'';
|
|
|
|
|
2019-10-04 12:20:00 +03:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
homepage = "https://shopify.github.io/shadowenv/";
|
|
|
|
description = "reversible directory-local environment variable manipulations";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = [ maintainers.marsam ];
|
|
|
|
};
|
|
|
|
}
|