2009-04-08 07:29:42 +00:00
|
|
|
{stdenv, fetchurl, flex, readline}:
|
2005-10-10 00:55:07 +00:00
|
|
|
|
2010-10-05 22:08:37 +00:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "bc-1.06";
|
2005-10-10 00:55:07 +00:00
|
|
|
src = fetchurl {
|
2010-10-05 22:08:37 +00:00
|
|
|
url = "mirror://gnu/bc/${name}.tar.gz";
|
|
|
|
sha256 = "0cqf5jkwx6awgd2xc2a0mkpxilzcfmhncdcfg7c9439wgkqxkxjf";
|
2005-10-10 00:55:07 +00:00
|
|
|
};
|
|
|
|
|
2009-04-08 07:29:42 +00:00
|
|
|
patches = [ ./readlinefix.patch ];
|
|
|
|
|
2011-01-06 03:11:25 +00:00
|
|
|
preConfigure = ''
|
|
|
|
sed -i 's/program.*save/static &/' bc/load.c
|
|
|
|
'';
|
|
|
|
|
2010-10-05 22:08:37 +00:00
|
|
|
configureFlags = [ "--with-readline" ];
|
2009-04-08 07:29:42 +00:00
|
|
|
|
|
|
|
buildInputs = [flex readline];
|
2010-09-27 11:19:31 +00:00
|
|
|
|
2010-10-05 22:08:37 +00:00
|
|
|
doCheck = true;
|
|
|
|
|
2010-09-27 11:19:31 +00:00
|
|
|
meta = {
|
|
|
|
description = "GNU software calculator";
|
|
|
|
homepage = http://www.gnu.org/software/bc/;
|
2010-10-05 22:08:37 +00:00
|
|
|
platforms = stdenv.lib.platforms.all;
|
2010-09-27 11:19:31 +00:00
|
|
|
};
|
2005-10-10 00:55:07 +00:00
|
|
|
}
|