2011-08-24 08:48:02 +01:00
|
|
|
{stdenv, fetchurl, perl, gettext }:
|
2010-01-13 21:09:55 +00:00
|
|
|
|
2015-04-06 07:04:10 +01:00
|
|
|
stdenv.mkDerivation rec {
|
2017-03-01 14:29:46 +00:00
|
|
|
name = "dos2unix-${version}";
|
|
|
|
version = "7.3.4";
|
|
|
|
|
2010-01-13 21:09:55 +00:00
|
|
|
src = fetchurl {
|
2015-04-06 07:04:10 +01:00
|
|
|
url = "http://waterlan.home.xs4all.nl/dos2unix/${name}.tar.gz";
|
2017-03-01 14:29:46 +00:00
|
|
|
sha256 = "1i9hbxn0br7xa18z4bjpkdv7mrzmbfxhm44mzpd07yd2qnxsgkcc";
|
2010-01-13 21:09:55 +00:00
|
|
|
};
|
|
|
|
|
2011-08-24 08:48:02 +01:00
|
|
|
configurePhase = ''
|
2017-03-01 14:29:46 +00:00
|
|
|
substituteInPlace Makefile \
|
|
|
|
--replace /usr $out
|
|
|
|
'';
|
2010-01-13 21:09:55 +00:00
|
|
|
|
2011-08-24 08:48:02 +01:00
|
|
|
buildInputs = [ perl gettext ];
|
2010-01-13 21:09:55 +00:00
|
|
|
|
2017-03-01 14:29:46 +00:00
|
|
|
meta = with stdenv.lib; {
|
2011-08-24 08:48:02 +01:00
|
|
|
homepage = http://waterlan.home.xs4all.nl/dos2unix.html;
|
|
|
|
description = "Tools to transform text files from dos to unix formats and vicervesa";
|
2017-03-01 14:29:46 +00:00
|
|
|
license = licenses.bsd2;
|
|
|
|
maintainers = with maintainers; [viric ndowens ];
|
|
|
|
|
2010-01-13 21:09:55 +00:00
|
|
|
};
|
|
|
|
}
|