2021-01-15 22:18:51 +00:00
|
|
|
{lib, stdenv, fetchurl, perl, gettext }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "dos2unix";
|
2023-02-16 17:41:37 +00:00
|
|
|
version = "7.4.4";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://waterlan.home.xs4all.nl/dos2unix/${pname}-${version}.tar.gz";
|
2023-02-16 17:41:37 +00:00
|
|
|
sha256 = "sha256-KKhB2wvVgn1kXKup2AFeOnGYPcbjmAcLUofuE3rkQ24=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ perl gettext ];
|
|
|
|
makeFlags = [ "prefix=${placeholder "out"}" ];
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00: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";
|
|
|
|
license = licenses.bsd2;
|
|
|
|
maintainers = with maintainers; [ c0bw3b ];
|
2021-03-09 03:18:52 +00:00
|
|
|
platforms = platforms.all;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|