diff options
author | Pascal Wittmann <mail@pascal-wittmann.de> | 2018-08-27 00:26:07 +0200 |
---|---|---|
committer | xeji <36407913+xeji@users.noreply.github.com> | 2018-08-27 00:26:07 +0200 |
commit | c2c13157bb4339069874206fa9588e75d106c808 (patch) | |
tree | de105c1266b8658edc240839faa3d8fc0b556133 | |
parent | aa8bdaf0c4ed67acfab6a1977b70c356bbf0543a (diff) | |
download | nixlib-c2c13157bb4339069874206fa9588e75d106c808.tar nixlib-c2c13157bb4339069874206fa9588e75d106c808.tar.gz nixlib-c2c13157bb4339069874206fa9588e75d106c808.tar.bz2 nixlib-c2c13157bb4339069874206fa9588e75d106c808.tar.lz nixlib-c2c13157bb4339069874206fa9588e75d106c808.tar.xz nixlib-c2c13157bb4339069874206fa9588e75d106c808.tar.zst nixlib-c2c13157bb4339069874206fa9588e75d106c808.zip |
udunits: 2.2.26 -> 2.2.27.6 (#45660)
-rw-r--r-- | pkgs/development/libraries/udunits/default.nix | 36 |
1 files changed, 20 insertions, 16 deletions
diff --git a/pkgs/development/libraries/udunits/default.nix b/pkgs/development/libraries/udunits/default.nix index b02ac8852371..664bc29a72de 100644 --- a/pkgs/development/libraries/udunits/default.nix +++ b/pkgs/development/libraries/udunits/default.nix @@ -1,22 +1,26 @@ -{ stdenv, fetchurl, - bison, flex, expat, file +{ stdenv, fetchFromGitHub, autoreconfHook, + texinfo, bison, flex, expat, file }: stdenv.mkDerivation rec { - name = "udunits-2.2.26"; - src = fetchurl { - url = "ftp://ftp.unidata.ucar.edu/pub/udunits/${name}.tar.gz"; - sha256 = "0v9mqw4drnkzkm57331ail6yvs9485jmi37s40lhvmf7r5lli3rn"; - }; + name = "udunits-${version}"; + version = "2.2.27.6"; + + src = fetchFromGitHub { + owner = "Unidata"; + repo = "UDUNITS-2"; + rev = "v${version}"; + sha256 = "0621pac24c842dyipzaa59rh6pza9phdqi3snd4cq4pib0wjw6gm"; + }; - nativeBuildInputs = [ bison flex file ]; - buildInputs = [ expat ]; + 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 ]; - }; + 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 ]; + }; } |