about summary refs log tree commit diff
path: root/pkgs/tools/text/diffstat
diff options
context:
space:
mode:
authorBjørn Forsman <bjorn.forsman@gmail.com>2014-06-22 13:39:28 +0200
committerBjørn Forsman <bjorn.forsman@gmail.com>2014-06-22 13:39:28 +0200
commit3ae765278f0e5d75e3d18ebac29c25780b92e9ee (patch)
tree78578ef25683f72bf208a552600e20cd14ec7599 /pkgs/tools/text/diffstat
parentc5e00799624e3dfa4f1dca727cbf81353bcfc091 (diff)
downloadnixlib-3ae765278f0e5d75e3d18ebac29c25780b92e9ee.tar
nixlib-3ae765278f0e5d75e3d18ebac29c25780b92e9ee.tar.gz
nixlib-3ae765278f0e5d75e3d18ebac29c25780b92e9ee.tar.bz2
nixlib-3ae765278f0e5d75e3d18ebac29c25780b92e9ee.tar.lz
nixlib-3ae765278f0e5d75e3d18ebac29c25780b92e9ee.tar.xz
nixlib-3ae765278f0e5d75e3d18ebac29c25780b92e9ee.tar.zst
nixlib-3ae765278f0e5d75e3d18ebac29c25780b92e9ee.zip
diffstat: clean up expression
Most importantly, add meta.description and meta.platforms.
Diffstat (limited to 'pkgs/tools/text/diffstat')
-rw-r--r--pkgs/tools/text/diffstat/default.nix18
1 files changed, 12 insertions, 6 deletions
diff --git a/pkgs/tools/text/diffstat/default.nix b/pkgs/tools/text/diffstat/default.nix
index 6bbf1a9a8c7f..94c2df9aabe0 100644
--- a/pkgs/tools/text/diffstat/default.nix
+++ b/pkgs/tools/text/diffstat/default.nix
@@ -1,17 +1,23 @@
-{fetchurl, stdenv}:
+{ fetchurl, stdenv }:
 
 stdenv.mkDerivation rec {
   name = "diffstat-1.58";
 
   src = fetchurl {
-    url = "ftp://invisible-island.net/diffstat/"+ name +".tgz";
+    url = "ftp://invisible-island.net/diffstat/${name}.tgz";
     sha256 = "14rpf5c05ff30f6vn6pn6pzy0k4g4is5im656ahsxff3k58i7mgs";
   };
 
-  meta = {
+  meta = with stdenv.lib; {
+    description = "Read output of diff and display a histogram of the changes";
+    longDescription = ''
+      diffstat reads the output of diff and displays a histogram of the
+      insertions, deletions, and modifications per-file. It is useful for
+      reviewing large, complex patch files.
+    '';
     homepage = http://invisible-island.net/diffstat/;
-    longDescription = "diffstat reads the output of diff and displays a
-istogram of the insertions, deletions, and modifications per-file. It
-s useful for reviewing large, complex patch files.";
+    license = licenses.mit;
+    platforms = platforms.linux;
+    maintainers = [ maintainers.bjornfor ];
   };
 }