Commit Graph

16 Commits

Author SHA1 Message Date
Ben Siraphob
8c5d37129f pkgs/tools: stdenv.lib -> lib 2021-01-15 17:12:36 +07:00
Profpatsch
4a7f99d55d treewide: with stdenv.lib; in meta -> with lib;
Part of: https://github.com/NixOS/nixpkgs/issues/108938

meta = with stdenv.lib;

is a widely used pattern. We want to slowly remove
the `stdenv.lib` indirection and encourage people
to use `lib` directly. Thus let’s start with the meta
field.

This used a rewriting script to mostly automatically
replace all occurances of this pattern, and add the
`lib` argument to the package header if it doesn’t
exist yet.

The script in its current form is available at
https://cs.tvl.fyi/depot@2f807d7f141068d2d60676a89213eaa5353ca6e0/-/blob/users/Profpatsch/nixpkgs-rewriter/default.nix
2021-01-11 10:38:22 +01:00
Steve Purcell
0f4be28af5 hdf4: fix build on darwin
The fix here is to not include libtirc on Darwin, on which platform
the library is unavailable.
2021-01-07 11:51:22 +13:00
Josef Kemetmüller
311addecb8 hdf4: Fix aarch64 build
The last glibc bump did break the aarch64 build of hdf4. We fix it by
adding the libtirpc dependency, which was previously part of glibc.

Fixes: #108340
2021-01-04 09:32:50 +01:00
Ryan Burns
81f07a6162 hdf4: fix invalid rpath on darwin
CMake changes in hdf4 v4.15.2 broke the library path on macOS,
linking using an invalid rpath rather than an absolute path.

Before this commit:
```
otool -L result/lib/libhdf.dylib
result/lib/libhdf.dylib:
	@rpath/libhdf.4.dylib (compatibility version 4.0.0, current version 4.15.2)
```

After:
```
otool -L result/lib/libhdf.dylib
result/lib/libhdf.dylib:
	/nix/store/bz52b2gwci0k8rwd0llsi555s1hx166j-hdf-4.2.15/lib/libhdf.4.15.2.dylib (compatibility version 4.0.0, current version 4.15.2)
```
2020-12-28 14:16:14 -08:00
Jonathan Ringer
cc54d5332e hdf4: 4.2.14 -> 4.2.15, fix build 2020-10-15 22:27:03 -07:00
Markus Kowalewski
e174d249df
hdf4: add license 2020-06-11 18:27:33 +02:00
Michael Reilly
84cf00f980
treewide: Per RFC45, remove all unquoted URLs 2020-04-10 17:54:53 +01:00
volth
46420bbaa3 treewide: name -> pname (easy cases) (#66585)
treewide replacement of

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

to pname
2019-08-15 13:41:18 +01:00
Ben Wolsieffer
31d32e0593 hdf4: fix tests on some machines 2019-05-08 12:41:44 -04:00
Matthew Bauer
6ed49262f5 treewide: remove BUILD_TESTING flag
This is now set by CMake
2019-03-11 10:11:28 -04:00
Andrew Dunham
104014c6ba hdf4: fix build on aarch64-linux (#47209)
Pull in the Debian patches for AArch64 support, and a bonus patch for
reproducible builds while we're at it.
2018-09-23 23:56:58 +02:00
R. RyanTM
23f5fe768d hdf4: 4.2.13 -> 4.2.14 (#43198)
Semi-automatic update generated by https://github.com/ryantm/nixpkgs-update tools.

This update was made based on information from https://repology.org/metapackage/hdf/versions.

These checks were done:

- built on NixOS
- /nix/store/f243368z016v0mwcx99gs6zc49nxyg55-hdf-4.2.14-bin/bin/hdfls passed the binary check.
- /nix/store/f243368z016v0mwcx99gs6zc49nxyg55-hdf-4.2.14-bin/bin/hdfed passed the binary check.
- Warning: no invocation of /nix/store/f243368z016v0mwcx99gs6zc49nxyg55-hdf-4.2.14-bin/bin/gif2hdf had a zero exit code or showed the expected version
- Warning: no invocation of /nix/store/f243368z016v0mwcx99gs6zc49nxyg55-hdf-4.2.14-bin/bin/hdf2gif had a zero exit code or showed the expected version
- Warning: no invocation of /nix/store/f243368z016v0mwcx99gs6zc49nxyg55-hdf-4.2.14-bin/bin/hdf2jpeg had a zero exit code or showed the expected version
- Warning: no invocation of /nix/store/f243368z016v0mwcx99gs6zc49nxyg55-hdf-4.2.14-bin/bin/hdf24to8 had a zero exit code or showed the expected version
- Warning: no invocation of /nix/store/f243368z016v0mwcx99gs6zc49nxyg55-hdf-4.2.14-bin/bin/hdf8to24 had a zero exit code or showed the expected version
- Warning: no invocation of /nix/store/f243368z016v0mwcx99gs6zc49nxyg55-hdf-4.2.14-bin/bin/hdfcomp had a zero exit code or showed the expected version
- Warning: no invocation of /nix/store/f243368z016v0mwcx99gs6zc49nxyg55-hdf-4.2.14-bin/bin/hdfpack had a zero exit code or showed the expected version
- Warning: no invocation of /nix/store/f243368z016v0mwcx99gs6zc49nxyg55-hdf-4.2.14-bin/bin/hdftopal had a zero exit code or showed the expected version
- Warning: no invocation of /nix/store/f243368z016v0mwcx99gs6zc49nxyg55-hdf-4.2.14-bin/bin/hdftor8 had a zero exit code or showed the expected version
- Warning: no invocation of /nix/store/f243368z016v0mwcx99gs6zc49nxyg55-hdf-4.2.14-bin/bin/hdfunpac had a zero exit code or showed the expected version
- Warning: no invocation of /nix/store/f243368z016v0mwcx99gs6zc49nxyg55-hdf-4.2.14-bin/bin/jpeg2hdf had a zero exit code or showed the expected version
- Warning: no invocation of /nix/store/f243368z016v0mwcx99gs6zc49nxyg55-hdf-4.2.14-bin/bin/paltohdf had a zero exit code or showed the expected version
- Warning: no invocation of /nix/store/f243368z016v0mwcx99gs6zc49nxyg55-hdf-4.2.14-bin/bin/r8tohdf had a zero exit code or showed the expected version
- Warning: no invocation of /nix/store/f243368z016v0mwcx99gs6zc49nxyg55-hdf-4.2.14-bin/bin/ristosds had a zero exit code or showed the expected version
- /nix/store/f243368z016v0mwcx99gs6zc49nxyg55-hdf-4.2.14-bin/bin/vmake passed the binary check.
- /nix/store/f243368z016v0mwcx99gs6zc49nxyg55-hdf-4.2.14-bin/bin/vshow passed the binary check.
- /nix/store/f243368z016v0mwcx99gs6zc49nxyg55-hdf-4.2.14-bin/bin/hdp passed the binary check.
- /nix/store/f243368z016v0mwcx99gs6zc49nxyg55-hdf-4.2.14-bin/bin/hdfimport passed the binary check.
- /nix/store/f243368z016v0mwcx99gs6zc49nxyg55-hdf-4.2.14-bin/bin/hdiff passed the binary check.
- /nix/store/f243368z016v0mwcx99gs6zc49nxyg55-hdf-4.2.14-bin/bin/hrepack passed the binary check.
- /nix/store/f243368z016v0mwcx99gs6zc49nxyg55-hdf-4.2.14-bin/bin/hrepack_check passed the binary check.
- /nix/store/f243368z016v0mwcx99gs6zc49nxyg55-hdf-4.2.14-bin/bin/ncgen passed the binary check.
- /nix/store/f243368z016v0mwcx99gs6zc49nxyg55-hdf-4.2.14-bin/bin/ncdump passed the binary check.
- 11 of 25 passed binary check by having a zero exit code.
- 0 of 25 passed binary check by having the new version present in output.
- found 4.2.14 with grep in /nix/store/f243368z016v0mwcx99gs6zc49nxyg55-hdf-4.2.14-bin
- directory tree listing: https://gist.github.com/c7f58f2da962d8b753b08b12178766f7
- du listing: https://gist.github.com/7d3dcd67602a8e6ffc864f5f43080c1d
2018-07-14 23:02:59 +02:00
Ryan Mulligan
75b4312411 hdf4: 4.2.12 -> 4.2.13
Semi-automatic update generated by https://github.com/ryantm/nix-update tools. These checks were done:

- built on NixOS
- ran `/nix/store/64fqrr4d4m0v3qcqxx0lvn2s4hw16g05-hdf-4.2.13-bin/bin/hdfls help` got 0 exit code
- ran `/nix/store/64fqrr4d4m0v3qcqxx0lvn2s4hw16g05-hdf-4.2.13-bin/bin/hdfls help` and found version 4.2.13
- ran `/nix/store/64fqrr4d4m0v3qcqxx0lvn2s4hw16g05-hdf-4.2.13-bin/bin/vmake -h` got 0 exit code
- ran `/nix/store/64fqrr4d4m0v3qcqxx0lvn2s4hw16g05-hdf-4.2.13-bin/bin/vmake --help` got 0 exit code
- ran `/nix/store/64fqrr4d4m0v3qcqxx0lvn2s4hw16g05-hdf-4.2.13-bin/bin/vmake help` got 0 exit code
- ran `/nix/store/64fqrr4d4m0v3qcqxx0lvn2s4hw16g05-hdf-4.2.13-bin/bin/vshow -h` got 0 exit code
- ran `/nix/store/64fqrr4d4m0v3qcqxx0lvn2s4hw16g05-hdf-4.2.13-bin/bin/vshow --help` got 0 exit code
- ran `/nix/store/64fqrr4d4m0v3qcqxx0lvn2s4hw16g05-hdf-4.2.13-bin/bin/vshow help` got 0 exit code
- ran `/nix/store/64fqrr4d4m0v3qcqxx0lvn2s4hw16g05-hdf-4.2.13-bin/bin/hdp help` got 0 exit code
- ran `/nix/store/64fqrr4d4m0v3qcqxx0lvn2s4hw16g05-hdf-4.2.13-bin/bin/hdp version` and found version 4.2.13
- ran `/nix/store/64fqrr4d4m0v3qcqxx0lvn2s4hw16g05-hdf-4.2.13-bin/bin/hdp help` and found version 4.2.13
- ran `/nix/store/64fqrr4d4m0v3qcqxx0lvn2s4hw16g05-hdf-4.2.13-bin/bin/hdfimport -h` got 0 exit code
- ran `/nix/store/64fqrr4d4m0v3qcqxx0lvn2s4hw16g05-hdf-4.2.13-bin/bin/hdfimport -V` and found version 4.2.13
- ran `/nix/store/64fqrr4d4m0v3qcqxx0lvn2s4hw16g05-hdf-4.2.13-bin/bin/hdfimport -h` and found version 4.2.13
- ran `/nix/store/64fqrr4d4m0v3qcqxx0lvn2s4hw16g05-hdf-4.2.13-bin/bin/hdiff -V` and found version 4.2.13
- ran `/nix/store/64fqrr4d4m0v3qcqxx0lvn2s4hw16g05-hdf-4.2.13-bin/bin/hrepack -h` got 0 exit code
- ran `/nix/store/64fqrr4d4m0v3qcqxx0lvn2s4hw16g05-hdf-4.2.13-bin/bin/hrepack --help` got 0 exit code
- ran `/nix/store/64fqrr4d4m0v3qcqxx0lvn2s4hw16g05-hdf-4.2.13-bin/bin/hrepack help` got 0 exit code
- ran `/nix/store/64fqrr4d4m0v3qcqxx0lvn2s4hw16g05-hdf-4.2.13-bin/bin/hrepack -V` and found version 4.2.13
- ran `/nix/store/64fqrr4d4m0v3qcqxx0lvn2s4hw16g05-hdf-4.2.13-bin/bin/hrepack_check -h` got 0 exit code
- ran `/nix/store/64fqrr4d4m0v3qcqxx0lvn2s4hw16g05-hdf-4.2.13-bin/bin/hrepack_check --help` got 0 exit code
- ran `/nix/store/64fqrr4d4m0v3qcqxx0lvn2s4hw16g05-hdf-4.2.13-bin/bin/hrepack_check help` got 0 exit code
- ran `/nix/store/64fqrr4d4m0v3qcqxx0lvn2s4hw16g05-hdf-4.2.13-bin/bin/ncgen -V` and found version 4.2.13
- ran `/nix/store/64fqrr4d4m0v3qcqxx0lvn2s4hw16g05-hdf-4.2.13-bin/bin/ncdump -h` got 0 exit code
- ran `/nix/store/64fqrr4d4m0v3qcqxx0lvn2s4hw16g05-hdf-4.2.13-bin/bin/ncdump help` got 0 exit code
- ran `/nix/store/64fqrr4d4m0v3qcqxx0lvn2s4hw16g05-hdf-4.2.13-bin/bin/ncdump -V` and found version 4.2.13
- ran `/nix/store/64fqrr4d4m0v3qcqxx0lvn2s4hw16g05-hdf-4.2.13-bin/bin/ncdump version` and found version 4.2.13
- ran `/nix/store/64fqrr4d4m0v3qcqxx0lvn2s4hw16g05-hdf-4.2.13-bin/bin/ncdump help` and found version 4.2.13
- found 4.2.13 with grep in /nix/store/64fqrr4d4m0v3qcqxx0lvn2s4hw16g05-hdf-4.2.13-bin
- directory tree listing: https://gist.github.com/556f493010a550af3ca5bbf318e609eb
2018-03-24 22:56:45 -05:00
Philipp Hausmann
a1ec03a223 hdf4: Make szip dependency optional. 2017-07-05 16:12:50 +02:00
Josef Kemetmueller
cce12a644c hdf4: Init at 4.2.12 2017-06-08 07:52:12 +00:00