lol

diffstat: clean up expression

Most importantly, add meta.description and meta.platforms.

+12 -6
+12 -6
pkgs/tools/text/diffstat/default.nix
··· 1 - {fetchurl, stdenv}: 1 + { fetchurl, stdenv }: 2 2 3 3 stdenv.mkDerivation rec { 4 4 name = "diffstat-1.58"; 5 5 6 6 src = fetchurl { 7 - url = "ftp://invisible-island.net/diffstat/"+ name +".tgz"; 7 + url = "ftp://invisible-island.net/diffstat/${name}.tgz"; 8 8 sha256 = "14rpf5c05ff30f6vn6pn6pzy0k4g4is5im656ahsxff3k58i7mgs"; 9 9 }; 10 10 11 - meta = { 11 + meta = with stdenv.lib; { 12 + description = "Read output of diff and display a histogram of the changes"; 13 + longDescription = '' 14 + diffstat reads the output of diff and displays a histogram of the 15 + insertions, deletions, and modifications per-file. It is useful for 16 + reviewing large, complex patch files. 17 + ''; 12 18 homepage = http://invisible-island.net/diffstat/; 13 - longDescription = "diffstat reads the output of diff and displays a 14 - istogram of the insertions, deletions, and modifications per-file. It 15 - s useful for reviewing large, complex patch files."; 19 + license = licenses.mit; 20 + platforms = platforms.linux; 21 + maintainers = [ maintainers.bjornfor ]; 16 22 }; 17 23 }