units: add readline dependency

The dependency on `readline` is for tab-completion support. This commit
also enables tests and adds meta information.

+10 -3
+10 -3
pkgs/tools/misc/units/default.nix
··· 1 - {stdenv, fetchurl}: 1 + { stdenv, fetchurl, readline }: 2 + 2 3 stdenv.mkDerivation rec { 3 4 name = "units-${version}"; 4 5 version = "2.12"; ··· 8 9 sha256 = "1jxvjknz2jhq773jrwx9gc1df3gfy73yqmkjkygqxzpi318yls3q"; 9 10 }; 10 11 11 - meta = { 12 + buildInputs = [ readline ]; 13 + 14 + doCheck = true; 15 + 16 + meta = with stdenv.lib; { 12 17 description = "Unit conversion tool"; 13 - platforms = stdenv.lib.platforms.linux; 18 + homepage = https://www.gnu.org/software/units/; 19 + license = [ licenses.gpl3Plus ]; 20 + platforms = stdenv.lib.platforms.all; 14 21 }; 15 22 }