nixpkgs/pkgs/tools/misc/bc/default.nix
Ludovic Courtès 2ca7b3c62c GNU bc: Fix `name'; clean things up.
svn path=/nixpkgs/trunk/; revision=24100
2010-10-05 22:08:37 +00:00

24 lines
508 B
Nix

{stdenv, fetchurl, flex, readline}:
stdenv.mkDerivation rec {
name = "bc-1.06";
src = fetchurl {
url = "mirror://gnu/bc/${name}.tar.gz";
sha256 = "0cqf5jkwx6awgd2xc2a0mkpxilzcfmhncdcfg7c9439wgkqxkxjf";
};
patches = [ ./readlinefix.patch ];
configureFlags = [ "--with-readline" ];
buildInputs = [flex readline];
doCheck = true;
meta = {
description = "GNU software calculator";
homepage = http://www.gnu.org/software/bc/;
platforms = stdenv.lib.platforms.all;
};
}