nixpkgs/pkgs/tools/misc/shadowenv/default.nix

25 lines
680 B
Nix
Raw Normal View History

2019-10-04 09:20:00 +00:00
{ stdenv, fetchFromGitHub, rustPlatform, Security }:
rustPlatform.buildRustPackage rec {
pname = "shadowenv";
2020-04-05 05:42:23 +00:00
version = "1.3.2";
2019-10-04 09:20:00 +00:00
src = fetchFromGitHub {
owner = "Shopify";
repo = pname;
rev = version;
2020-04-05 05:42:23 +00:00
sha256 = "1yapplqy7wmmjh8r5m43na9n2p100k80s7nkaswndyp5ljr9m20l";
2019-10-04 09:20:00 +00:00
};
2020-04-05 05:42:23 +00:00
cargoSha256 = "1pnfd461i65jd7s8dpfpys4k620w86bv56gkdsyx5lcvhqw1krnr";
2019-10-04 09:20:00 +00:00
buildInputs = stdenv.lib.optionals stdenv.isDarwin [ Security ];
meta = with stdenv.lib; {
homepage = "https://shopify.github.io/shadowenv/";
description = "reversible directory-local environment variable manipulations";
license = licenses.mit;
maintainers = [ maintainers.marsam ];
};
}