nixpkgs/pkgs/tools/text/dos2unix/default.nix

25 lines
668 B
Nix
Raw Normal View History

{stdenv, fetchurl, perl, gettext }:
2015-04-06 06:04:10 +00:00
stdenv.mkDerivation rec {
2016-01-09 16:46:03 +00:00
name = "dos2unix-7.3.2";
src = fetchurl {
2015-04-06 06:04:10 +00:00
url = "http://waterlan.home.xs4all.nl/dos2unix/${name}.tar.gz";
2016-01-09 16:46:03 +00:00
sha256 = "12c68c6wjnwrkyjj99fn6d0i4bf53aldj259lhjwq0g0nc5yxs67";
};
configurePhase = ''
sed -i -e s,/usr,$out, Makefile
'';
buildInputs = [ perl gettext ];
meta = {
homepage = http://waterlan.home.xs4all.nl/dos2unix.html;
description = "Tools to transform text files from dos to unix formats and vicervesa";
license = stdenv.lib.licenses.bsd2;
maintainers = with stdenv.lib.maintainers; [viric];
platforms = with stdenv.lib.platforms; all;
};
}