about summary refs log tree commit diff
path: root/pkgs/tools/misc/shadowenv
diff options
context:
space:
mode:
authorMario Rodas <marsam@users.noreply.github.com>2019-10-04 04:20:00 -0500
committerLassulus <github@lassul.us>2019-10-04 23:10:51 +0200
commit8385e4d2074f53c4f594f2d9af792d0efda2115e (patch)
tree7ab925c7d147cf721fbb2abcd54964e28148e912 /pkgs/tools/misc/shadowenv
parent922de4f4b54858a4938a5593d50b5a5eecd47712 (diff)
shadowenv: init at 1.2.1
Diffstat (limited to 'pkgs/tools/misc/shadowenv')
-rw-r--r--pkgs/tools/misc/shadowenv/default.nix24
1 files changed, 24 insertions, 0 deletions
diff --git a/pkgs/tools/misc/shadowenv/default.nix b/pkgs/tools/misc/shadowenv/default.nix
new file mode 100644
index 0000000000000..6638a50931df0
--- /dev/null
+++ b/pkgs/tools/misc/shadowenv/default.nix
@@ -0,0 +1,24 @@
+{ stdenv, fetchFromGitHub, rustPlatform, Security }:
+
+rustPlatform.buildRustPackage rec {
+  pname = "shadowenv";
+  version = "1.2.1";
+
+  src = fetchFromGitHub {
+    owner = "Shopify";
+    repo = pname;
+    rev = version;
+    sha256 = "01hhh45h742z9mjcpmyjpbjf90a5b1m58b6nml2han149xpn5b74";
+  };
+
+  cargoSha256 = "0r8s20xgcp5d1ac07g5g4lrrnhrn2qsr1kgj13h2csly22j0ca2a";
+
+  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 ];
+  };
+}