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