3
0
Fork 0
forked from mirrors/nixpkgs

direnv: enable checks

This commit is contained in:
zowoq 2020-08-11 08:27:38 +10:00 committed by Jon
parent 13f7c48ad0
commit dc258976b4

View file

@ -1,4 +1,4 @@
{ stdenv, fetchFromGitHub, buildGoModule, bash }:
{ stdenv, fetchFromGitHub, buildGoModule, bash, fish, zsh }:
buildGoModule rec {
pname = "direnv";
@ -6,8 +6,6 @@ buildGoModule rec {
vendorSha256 = null;
doCheck = false;
src = fetchFromGitHub {
owner = "direnv";
repo = "direnv";
@ -31,6 +29,13 @@ buildGoModule rec {
echo "eval ($out/bin/direnv hook fish)" > $out/share/fish/vendor_conf.d/direnv.fish
'';
checkInputs = [ fish zsh ];
checkPhase = ''
export HOME=$(mktemp -d)
make test-go test-bash test-fish test-zsh
'';
meta = with stdenv.lib; {
description = "A shell extension that manages your environment";
longDescription = ''