about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/libraries/udunits/default.nix
blob: faee73fd393a9d0b6c66d0fa3e4919d206e1fee3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
{ stdenv, fetchFromGitHub, autoreconfHook,
  texinfo, bison, flex, expat, file
}:

stdenv.mkDerivation rec {
  pname = "udunits";
  version = "2.2.27.6";
  
  src = fetchFromGitHub {
    owner = "Unidata";
    repo = "UDUNITS-2";
    rev = "v${version}";
    sha256 = "0621pac24c842dyipzaa59rh6pza9phdqi3snd4cq4pib0wjw6gm";
  };

  nativeBuildInputs = [ autoreconfHook texinfo bison flex file ];
  buildInputs = [ expat ];

  meta = with stdenv.lib; {
    homepage = https://www.unidata.ucar.edu/software/udunits/;
    description = "A C-based package for the programatic handling of units of physical quantities";
    license = licenses.bsdOriginal;
    platforms = platforms.linux;
    maintainers = with maintainers; [ pSub ];
  };
}