Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
20 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 ]; | ||
}; | ||
} |