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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

24 lines
799 B
Nix
Raw Normal View History

{lib, stdenv, fetchurl, perl, gettext }:
2015-04-06 06:04:10 +00:00
stdenv.mkDerivation rec {
pname = "dos2unix";
2023-06-04 09:02:35 +00:00
version = "7.5.0";
2017-03-01 14:29:46 +00:00
src = fetchurl {
url = "https://waterlan.home.xs4all.nl/dos2unix/${pname}-${version}.tar.gz";
2023-06-04 09:02:35 +00:00
sha256 = "sha256-ejsB0B4hTWLCs+BMOpLg3ccoo4VWbkwDVu+mb9brla8=";
};
2018-10-12 11:02:37 +00:00
nativeBuildInputs = [ perl gettext ];
makeFlags = [ "prefix=${placeholder "out"}" ];
meta = with lib; {
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 14:29:46 +00:00
license = licenses.bsd2;
2019-12-26 21:28:10 +00:00
maintainers = with maintainers; [ c0bw3b ];
2021-03-04 07:18:37 +00:00
platforms = platforms.all;
};
}