summary refs log tree commit diff
path: root/pkgs
diff options
context:
space:
mode:
authorndowens <ndowens04@gmail.com>2017-03-01 08:29:46 -0600
committerzimbatm <zimbatm@zimbatm.com>2017-03-01 14:29:46 +0000
commit614afce3a88bf845e1116f0f2958b4c111ca238e (patch)
tree16955ed14e6426c8a6b6bcca295108b090231e01 /pkgs
parentb8812dfeacf9f55605d03b61b7b4b8a627d44739 (diff)
downloadnixlib-614afce3a88bf845e1116f0f2958b4c111ca238e.tar
nixlib-614afce3a88bf845e1116f0f2958b4c111ca238e.tar.gz
nixlib-614afce3a88bf845e1116f0f2958b4c111ca238e.tar.bz2
nixlib-614afce3a88bf845e1116f0f2958b4c111ca238e.tar.lz
nixlib-614afce3a88bf845e1116f0f2958b4c111ca238e.tar.xz
nixlib-614afce3a88bf845e1116f0f2958b4c111ca238e.tar.zst
nixlib-614afce3a88bf845e1116f0f2958b4c111ca238e.zip
dos2unix: 7.3.2 -> 7.3.4 (#23310)
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/tools/text/dos2unix/default.nix20
1 files changed, 11 insertions, 9 deletions
diff --git a/pkgs/tools/text/dos2unix/default.nix b/pkgs/tools/text/dos2unix/default.nix
index c4bb077ef233..338967e5b9a0 100644
--- a/pkgs/tools/text/dos2unix/default.nix
+++ b/pkgs/tools/text/dos2unix/default.nix
@@ -1,24 +1,26 @@
 {stdenv, fetchurl, perl, gettext }:
 
 stdenv.mkDerivation rec {
-  name = "dos2unix-7.3.2";
-  
+  name = "dos2unix-${version}";
+  version = "7.3.4";
+
   src = fetchurl {
     url = "http://waterlan.home.xs4all.nl/dos2unix/${name}.tar.gz";
-    sha256 = "12c68c6wjnwrkyjj99fn6d0i4bf53aldj259lhjwq0g0nc5yxs67";
+    sha256 = "1i9hbxn0br7xa18z4bjpkdv7mrzmbfxhm44mzpd07yd2qnxsgkcc";
   };
 
   configurePhase = ''
-    sed -i -e s,/usr,$out, Makefile
-  '';
+    substituteInPlace Makefile \
+    --replace /usr $out
+    '';
 
   buildInputs = [ perl gettext ];
 
-  meta = {
+  meta = with stdenv.lib; {
     homepage = http://waterlan.home.xs4all.nl/dos2unix.html;
     description = "Tools to transform text files from dos to unix formats and vicervesa";
-    license = stdenv.lib.licenses.bsd2;
-    maintainers = with stdenv.lib.maintainers; [viric];
-    platforms = with stdenv.lib.platforms; all;
+    license = licenses.bsd2;
+    maintainers = with maintainers; [viric ndowens ];
+    
   };
 }