1{ stdenv, fetchurl, readline }:
2
3stdenv.mkDerivation rec {
4 name = "units-${version}";
5 version = "2.13";
6
7 src = fetchurl {
8 url = "mirror://gnu/units/${name}.tar.gz";
9 sha256 = "1awhjw9zjlfb8s5g3yyx63f7ddfcr1sanlbxpqifmrgq24ql198b";
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 = platforms.all;
21 maintainers = [ maintainers.vrthra ];
22 };
23}