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

25 lines
680 B
Nix
Raw Normal View History

2019-10-04 10:20:00 +01:00
{ stdenv, fetchFromGitHub, rustPlatform, Security }:
rustPlatform.buildRustPackage rec {
pname = "shadowenv";
2019-11-13 18:03:45 +00:00
version = "1.3.1";
2019-10-04 10:20:00 +01:00
src = fetchFromGitHub {
owner = "Shopify";
repo = pname;
rev = version;
2019-11-13 18:03:45 +00:00
sha256 = "1s59ra99wcyyqz8gzly4qmcq5rh22c50c75cdi2kyajm7ghgryy9";
2019-10-04 10:20:00 +01:00
};
2019-11-13 18:03:45 +00:00
cargoSha256 = "0s4p4mpz1p5v9hr4flxlzqvc1b3zbqr3nxp1nxjw39ng9g3hplpg";
2019-10-04 10:20:00 +01: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 ];
};
}