diff options
author | Robert Helgesson <robert@rycee.net> | 2015-12-14 18:27:31 +0100 |
---|---|---|
committer | Robert Helgesson <robert@rycee.net> | 2015-12-14 18:34:54 +0100 |
commit | 268102ce2a810a80e2b4da7ecbf241672f03fcc6 (patch) | |
tree | 37be8a7167644244fa42ada0e9db44debb6bdd83 /pkgs/tools/misc/units | |
parent | 9688c39709d3113bcc6c34e89a55f7663cc108bf (diff) | |
download | nixlib-268102ce2a810a80e2b4da7ecbf241672f03fcc6.tar nixlib-268102ce2a810a80e2b4da7ecbf241672f03fcc6.tar.gz nixlib-268102ce2a810a80e2b4da7ecbf241672f03fcc6.tar.bz2 nixlib-268102ce2a810a80e2b4da7ecbf241672f03fcc6.tar.lz nixlib-268102ce2a810a80e2b4da7ecbf241672f03fcc6.tar.xz nixlib-268102ce2a810a80e2b4da7ecbf241672f03fcc6.tar.zst nixlib-268102ce2a810a80e2b4da7ecbf241672f03fcc6.zip |
units: add readline dependency
The dependency on `readline` is for tab-completion support. This commit also enables tests and adds meta information.
Diffstat (limited to 'pkgs/tools/misc/units')
-rw-r--r-- | pkgs/tools/misc/units/default.nix | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/pkgs/tools/misc/units/default.nix b/pkgs/tools/misc/units/default.nix index 6a7c3b130bd0..3fc015c77043 100644 --- a/pkgs/tools/misc/units/default.nix +++ b/pkgs/tools/misc/units/default.nix @@ -1,4 +1,5 @@ -{stdenv, fetchurl}: +{ stdenv, fetchurl, readline }: + stdenv.mkDerivation rec { name = "units-${version}"; version = "2.12"; @@ -8,8 +9,14 @@ stdenv.mkDerivation rec { sha256 = "1jxvjknz2jhq773jrwx9gc1df3gfy73yqmkjkygqxzpi318yls3q"; }; - meta = { + buildInputs = [ readline ]; + + doCheck = true; + + meta = with stdenv.lib; { description = "Unit conversion tool"; - platforms = stdenv.lib.platforms.linux; + homepage = https://www.gnu.org/software/units/; + license = [ licenses.gpl3Plus ]; + platforms = stdenv.lib.platforms.all; }; } |