nixpkgs/pkgs/tools/archivers/atool/default.nix
Igor Pashev 0635f1640f atool's configure script uses bashizm
if test "${startperl:0:1}" = "#" ; then
  startperl="\\$startperl"
fi

This results in an error:
checking for perl... /nix/store/6qvjjaywj6qf8jn9splpiz9qap01w36w-perl-5.16.3/bin/perl
./configure: 2264: ./configure.lineno: Bad substitution
builder for ‘/nix/store/nk9y51xlzsbkhswc5cpl3hkryg2xw85g-atool-0.39.0.drv’ failed with exit code 2
2014-10-09 21:59:46 +04:00

19 lines
482 B
Nix

{stdenv, fetchurl, perl, bash}:
stdenv.mkDerivation rec {
name = "atool-0.39.0";
src = fetchurl {
url = mirror://savannah/atool/atool-0.39.0.tar.gz;
sha256 = "aaf60095884abb872e25f8e919a8a63d0dabaeca46faeba87d12812d6efc703b";
};
buildInputs = [ perl ];
configureScript = "${bash}/bin/bash configure";
meta = {
homepage = http://www.nongnu.org/atool;
description = "Archive command line helper";
hydraPlatforms = stdenv.lib.platforms.linux;
};
}