forked from mirrors/nixpkgs
direnv: enable checks
This commit is contained in:
parent
13f7c48ad0
commit
dc258976b4
|
@ -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 = ''
|
||||
|
|
Loading…
Reference in a new issue