about summary refs log tree commit diff
path: root/pkgs/tools/misc/units/default.nix
blob: 3fc015c770433d0a66d80a44fd2a2f7916718afe (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
{ stdenv, fetchurl, readline }:

stdenv.mkDerivation rec {
  name = "units-${version}";
  version = "2.12";

  src = fetchurl {
    url = "mirror://gnu/units/${name}.tar.gz";
    sha256 = "1jxvjknz2jhq773jrwx9gc1df3gfy73yqmkjkygqxzpi318yls3q";
  };

  buildInputs = [ readline ];

  doCheck = true;

  meta = with stdenv.lib; {
    description = "Unit conversion tool";
    homepage = https://www.gnu.org/software/units/;
    license = [ licenses.gpl3Plus ];
    platforms = stdenv.lib.platforms.all;
  };
}