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 {
|
buildGoModule rec {
|
||||||
pname = "direnv";
|
pname = "direnv";
|
||||||
@ -6,8 +6,6 @@ buildGoModule rec {
|
|||||||
|
|
||||||
vendorSha256 = null;
|
vendorSha256 = null;
|
||||||
|
|
||||||
doCheck = false;
|
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "direnv";
|
owner = "direnv";
|
||||||
repo = "direnv";
|
repo = "direnv";
|
||||||
@ -31,6 +29,13 @@ buildGoModule rec {
|
|||||||
echo "eval ($out/bin/direnv hook fish)" > $out/share/fish/vendor_conf.d/direnv.fish
|
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; {
|
meta = with stdenv.lib; {
|
||||||
description = "A shell extension that manages your environment";
|
description = "A shell extension that manages your environment";
|
||||||
longDescription = ''
|
longDescription = ''
|
||||||
|
Loading…
x
Reference in New Issue
Block a user