diff options
author | Mario Rodas <marsam@users.noreply.github.com> | 2020-03-21 06:13:00 -0500 |
---|---|---|
committer | Mario Rodas <marsam@users.noreply.github.com> | 2020-03-21 06:13:00 -0500 |
commit | 5ba00362714be0b22a21f08ba182fb7f6d8bc427 (patch) | |
tree | 930f9fa8beb2b598309e6ef9f72084adaa0cbd08 /pkgs/development/tools | |
parent | d7d95111bd41a2501650134ce8f4404f8f34cde5 (diff) | |
download | nixlib-5ba00362714be0b22a21f08ba182fb7f6d8bc427.tar nixlib-5ba00362714be0b22a21f08ba182fb7f6d8bc427.tar.gz nixlib-5ba00362714be0b22a21f08ba182fb7f6d8bc427.tar.bz2 nixlib-5ba00362714be0b22a21f08ba182fb7f6d8bc427.tar.lz nixlib-5ba00362714be0b22a21f08ba182fb7f6d8bc427.tar.xz nixlib-5ba00362714be0b22a21f08ba182fb7f6d8bc427.tar.zst nixlib-5ba00362714be0b22a21f08ba182fb7f6d8bc427.zip |
reviewdog: fix build on darwin
Diffstat (limited to 'pkgs/development/tools')
-rw-r--r-- | pkgs/development/tools/misc/reviewdog/default.nix | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/pkgs/development/tools/misc/reviewdog/default.nix b/pkgs/development/tools/misc/reviewdog/default.nix index 9af294716ff3..aecd373f09e9 100644 --- a/pkgs/development/tools/misc/reviewdog/default.nix +++ b/pkgs/development/tools/misc/reviewdog/default.nix @@ -1,4 +1,4 @@ -{ lib, buildGoModule, fetchFromGitHub }: +{ stdenv, buildGoModule, fetchFromGitHub, Security }: buildGoModule rec { pname = "reviewdog"; @@ -13,11 +13,13 @@ buildGoModule rec { modSha256 = "1jf08g0xr4wknh9x15igq73y02cy2faqjdjs2v842ii4p3n4p9dw"; + buildInputs = stdenv.lib.optionals stdenv.isDarwin [ Security ]; + subPackages = [ "cmd/reviewdog" ]; buildFlagsArray = [ "-ldflags=-s -w -X github.com/reviewdog/reviewdog/commands.Version=${version}" ]; - meta = with lib; { + meta = with stdenv.lib; { description = "Automated code review tool integrated with any code analysis tools regardless of programming language"; homepage = "https://github.com/reviewdog/reviewdog"; changelog = "https://github.com/reviewdog/reviewdog/releases/tag/v${version}"; |