diff options
Diffstat (limited to 'pkgs/tools/misc/bc/default.nix')
-rw-r--r-- | pkgs/tools/misc/bc/default.nix | 26 |
1 files changed, 21 insertions, 5 deletions
diff --git a/pkgs/tools/misc/bc/default.nix b/pkgs/tools/misc/bc/default.nix index e788fc53875fb..527357dc4fa04 100644 --- a/pkgs/tools/misc/bc/default.nix +++ b/pkgs/tools/misc/bc/default.nix @@ -1,5 +1,13 @@ -{ lib, stdenv, autoreconfHook, buildPackages -, fetchurl, flex, readline, ed, texinfo +{ + lib, + stdenv, + autoreconfHook, + buildPackages, + fetchurl, + flex, + readline, + ed, + texinfo, }: stdenv.mkDerivation rec { @@ -18,11 +26,18 @@ stdenv.mkDerivation rec { depsBuildBuild = [ buildPackages.stdenv.cc ]; nativeBuildInputs = [ # Tools - autoreconfHook ed flex texinfo + autoreconfHook + ed + flex + texinfo # Libraries for build - buildPackages.readline buildPackages.ncurses + buildPackages.readline + buildPackages.ncurses + ]; + buildInputs = [ + readline + flex ]; - buildInputs = [ readline flex ]; doCheck = true; # not cross @@ -36,5 +51,6 @@ stdenv.mkDerivation rec { homepage = "https://www.gnu.org/software/bc/"; license = licenses.gpl3Plus; platforms = platforms.all; + mainProgram = "bc"; }; } |