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

27 lines
675 B
Nix
Raw Normal View History

{stdenv, fetchurl, perl, gettext }:
2015-04-06 08:04:10 +02:00
stdenv.mkDerivation rec {
pname = "dos2unix";
2018-01-04 09:34:44 +01:00
version = "7.4.0";
2017-03-01 15:29:46 +01:00
src = fetchurl {
url = "https://waterlan.home.xs4all.nl/dos2unix/${pname}-${version}.tar.gz";
2018-01-04 09:34:44 +01:00
sha256 = "12h4c61g376bhq03y5g2xszkrkrj5hwd928rly3xsp6rvfmnbixs";
};
configurePhase = ''
2017-03-01 15:29:46 +01:00
substituteInPlace Makefile \
--replace /usr $out
'';
2018-10-12 13:02:37 +02:00
nativeBuildInputs = [ perl gettext ];
2017-03-01 15:29:46 +01:00
meta = with stdenv.lib; {
homepage = http://waterlan.home.xs4all.nl/dos2unix.html;
description = "Tools to transform text files from dos to unix formats and vicervesa";
2017-03-01 15:29:46 +01:00
license = licenses.bsd2;
maintainers = with maintainers; [ndowens ];
2018-01-04 09:34:44 +01:00
};
}