summary refs log blame commit diff
path: root/pkgs/tools/misc/bc/default.nix
blob: 2371e91ae2fc66c117498e3ef29a4b51361dedaf (plain) (tree)
1
2
3
4
5
6
7
8
9
                                                
 
                         
                     
                  
                                           
                                                                                

    
                                         
 
                                           
 

                 


                                               
                                         
    
 
{stdenv, fetchurl, flex, readline, ed, texinfo}:

stdenv.mkDerivation rec {
  name = "bc-1.07.1";
  src = fetchurl {
    url = "mirror://gnu/bc/${name}.tar.gz";
    sha256 = "62adfca89b0a1c0164c2cdca59ca210c1d44c3ffc46daf9931cf4942664cb02a";
  };

  configureFlags = [ "--with-readline" ];

  buildInputs = [flex readline ed texinfo];

  doCheck = true;

  meta = {
    description = "GNU software calculator";
    homepage = http://www.gnu.org/software/bc/;
    platforms = stdenv.lib.platforms.all;
  };
}