git.iko.soy/typeable/nixpkgs
on master help sign in
dos2unix: 7.3.2 -> 7.3.4 (#23310)
614afcendowens
pkgs/tools/text/dos2unix/default.nix+11−9
@@ -1,24 +1,26 @@
1{stdenv, fetchurl, perl, gettext }:
1{stdenv, fetchurl, perl, gettext }:
2
2
3stdenv.mkDerivation rec {
3stdenv.mkDerivation rec {
4− name = "dos2unix-7.3.2";
4+ name = "dos2unix-${version}";
5−
5+ version = "7.3.4";
6+
6 src = fetchurl {
7 src = fetchurl {
7 url = "http://waterlan.home.xs4all.nl/dos2unix/${name}.tar.gz";
8 url = "http://waterlan.home.xs4all.nl/dos2unix/${name}.tar.gz";
8− sha256 = "12c68c6wjnwrkyjj99fn6d0i4bf53aldj259lhjwq0g0nc5yxs67";
9+ sha256 = "1i9hbxn0br7xa18z4bjpkdv7mrzmbfxhm44mzpd07yd2qnxsgkcc";
9 };
10 };
10
11
11 configurePhase = ''
12 configurePhase = ''
12− sed -i -e s,/usr,$out, Makefile
13+ substituteInPlace Makefile \
14+ --replace /usr $out
13− '';
15+ '';
14
16
15 buildInputs = [ perl gettext ];
17 buildInputs = [ perl gettext ];
16
18
17− meta = {
19+ meta = with stdenv.lib; {
18 homepage = http://waterlan.home.xs4all.nl/dos2unix.html;
20 homepage = http://waterlan.home.xs4all.nl/dos2unix.html;
19 description = "Tools to transform text files from dos to unix formats and vicervesa";
21 description = "Tools to transform text files from dos to unix formats and vicervesa";
20− license = stdenv.lib.licenses.bsd2;
22+ license = licenses.bsd2;
21− maintainers = with stdenv.lib.maintainers; [viric];
23+ maintainers = with maintainers; [viric ndowens ];
22− platforms = with stdenv.lib.platforms; all;
24+
23 };
25 };
24}
26}