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