btrbk: add mainProgram (#356350)
[NixPkgs.git] / pkgs / by-name / do / dos2unix / package.nix
blob9785b21e0dcb3d5435bb1633b04b8c87c5bcc1e7
1 {lib, stdenv, fetchurl, perl, gettext }:
3 stdenv.mkDerivation rec {
4   pname = "dos2unix";
5   version = "7.5.2";
7   src = fetchurl {
8     url = "https://waterlan.home.xs4all.nl/dos2unix/${pname}-${version}.tar.gz";
9     sha256 = "sha256-JkdCRGYIRC60j5bCCvbaMDyzqSs2TnLLfiT4gjnEvzo=";
10   };
12   nativeBuildInputs = [ perl gettext ];
13   makeFlags = [ "prefix=${placeholder "out"}" ];
15   meta = with lib; {
16     description = "Convert text files with DOS or Mac line breaks to Unix line breaks and vice versa";
17     homepage = "https://waterlan.home.xs4all.nl/dos2unix.html";
18     changelog = "https://sourceforge.net/p/dos2unix/dos2unix/ci/dos2unix-${version}/tree/dos2unix/NEWS.txt?format=raw";
19     license = licenses.bsd2;
20     maintainers = with maintainers; [ c0bw3b ];
21     platforms = platforms.all;
22   };