2021-01-11 08:54:33 +01:00
|
|
|
{lib, stdenv, fetchurl, perl, gettext }:
|
2010-01-13 22:09:55 +01:00
|
|
|
|
2015-04-06 08:04:10 +02:00
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "dos2unix";
|
2020-10-24 16:27:14 +02:00
|
|
|
version = "7.4.2";
|
2017-03-01 15:29:46 +01:00
|
|
|
|
2010-01-13 22:09:55 +01:00
|
|
|
src = fetchurl {
|
2019-08-15 14:41:18 +02:00
|
|
|
url = "https://waterlan.home.xs4all.nl/dos2unix/${pname}-${version}.tar.gz";
|
2020-10-24 16:27:14 +02:00
|
|
|
sha256 = "00dfsf4rfyjb5j12gan8xjiirm0asshdz6dmd3l34a7ays6wadb0";
|
2010-01-13 22:09:55 +01:00
|
|
|
};
|
|
|
|
|
2018-10-12 13:02:37 +02:00
|
|
|
nativeBuildInputs = [ perl gettext ];
|
2019-10-08 17:33:20 +02:00
|
|
|
makeFlags = [ "prefix=${placeholder "out"}" ];
|
2010-01-13 22:09:55 +01:00
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2019-10-08 17:33:20 +02:00
|
|
|
description = "Convert text files with DOS or Mac line breaks to Unix line breaks and vice versa";
|
|
|
|
homepage = "https://waterlan.home.xs4all.nl/dos2unix.html";
|
|
|
|
changelog = "https://sourceforge.net/p/dos2unix/dos2unix/ci/dos2unix-${version}/tree/dos2unix/NEWS.txt?format=raw";
|
2017-03-01 15:29:46 +01:00
|
|
|
license = licenses.bsd2;
|
2019-12-26 22:28:10 +01:00
|
|
|
maintainers = with maintainers; [ c0bw3b ];
|
2021-03-04 08:18:37 +01:00
|
|
|
platforms = platforms.all;
|
2010-01-13 22:09:55 +01:00
|
|
|
};
|
|
|
|
}
|