2009-04-08 09:29:42 +02:00
|
|
|
{stdenv, fetchurl, flex, readline}:
|
2005-10-10 02:55:07 +02:00
|
|
|
|
2010-10-06 00:08:37 +02:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "bc-1.06";
|
2005-10-10 02:55:07 +02:00
|
|
|
src = fetchurl {
|
2010-10-06 00:08:37 +02:00
|
|
|
url = "mirror://gnu/bc/${name}.tar.gz";
|
|
|
|
sha256 = "0cqf5jkwx6awgd2xc2a0mkpxilzcfmhncdcfg7c9439wgkqxkxjf";
|
2005-10-10 02:55:07 +02:00
|
|
|
};
|
|
|
|
|
2009-04-08 09:29:42 +02:00
|
|
|
patches = [ ./readlinefix.patch ];
|
|
|
|
|
2010-10-06 00:08:37 +02:00
|
|
|
configureFlags = [ "--with-readline" ];
|
2009-04-08 09:29:42 +02:00
|
|
|
|
|
|
|
buildInputs = [flex readline];
|
2010-09-27 13:19:31 +02:00
|
|
|
|
2010-10-06 00:08:37 +02:00
|
|
|
doCheck = true;
|
|
|
|
|
2010-09-27 13:19:31 +02:00
|
|
|
meta = {
|
|
|
|
description = "GNU software calculator";
|
|
|
|
homepage = http://www.gnu.org/software/bc/;
|
2010-10-06 00:08:37 +02:00
|
|
|
platforms = stdenv.lib.platforms.all;
|
2010-09-27 13:19:31 +02:00
|
|
|
};
|
2005-10-10 02:55:07 +02:00
|
|
|
}
|