New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
glm: 0.9.8.5 -> 0.9.9.8 #134913
glm: 0.9.8.5 -> 0.9.9.8 #134913
Conversation
@ofborg build kicad-small |
|
This pull request has been mentioned on NixOS Discourse. There might be relevant details there: |
Bump abandoned package to close NixOS#132479. - Use fetchFromGitHub to download the archive. - No need for the updated platform.h patch. The released archive builds with default stdenv. (It may be needed again in the future?.) - Use the proper attribute to set CMake flags. - Don't build the (dummy?) libraries. They are not used anyway by any other target nor made available by the glmConfig.cmake file. - Build and run the tests now. - Don't define the GLM_COMPILER macro on Darwin. Doesn't seem necessary anymore, there are no errors without it. (And it is not even documented what was the original error that required it to be defined.) - Upstream became package-unfriendly and removed the install command, so it needs to be installed manually. - Don't set the now unsupported CMake option GLM_INSTALL_ENABLE. - Remove unwanted files from the include directory. - Fix glmConfig.cmake with the proper path to the include directory. - While on it, install a custom pkg-config file, since it is trivial. - Don't install unnecessary files as documentation. - Since I practically rewrote the entire derivation and the package is abandoned, add myself as maintainer (I guess?).
At least
|
I'll take I look, but I tested the installation with upstream's own cmake test and it is fine:
|
Mmm, but there is no There is no such library on the previous version neither:
|
I suspect But I know almost nothing about |
Well, that patch is wrong. I'll fix it and send a PR. |
Well, back then it was valid, because it fixed a bunch of CMake-related issues in EmptyEpsilon :-) It seems as if the |
The CMake config files did change, since upstream decided to not support proper installation anymore, and it is using now a custom, simplified config file. But the patch is wrong now because upstream fixed the CMake target name. Before, So it is an easy fix, just use the proper target name |
Aah, now I get it, thanks for elaborating! |
Motivation for this change
Bump abandoned package to close #132479.
I don't really use it. I was just skimming through the list of issues to find something I may help with.
Things done
Bump version and refactor derivation to make it work
Use
fetchFromGitHub
to download the archive.No need for the updated
platform.h
patch. The released archive builds with defaultstdenv
. (It may be needed again in the future?)Use the proper attribute to set CMake flags.
Don't build the (dummy?) libraries. They are not used anyway by any other target nor made available by the
glmConfig.cmake
file.Build and run the tests now.
Don't define the
GLM_COMPILER
macro on Darwin. Doesn't seem necessary anymore, there are no errors without it. (And it is not even documented what was the original error that required it to be defined.)Upstream became package-unfriendly and removed the install command, so it needs to be installed manually.
Don't set the now unsupported CMake option
GLM_INSTALL_ENABLE
.Remove unwanted files from the include directory.
Fix
glmConfig.cmake
with the proper path to the include directory.While on it, install a custom pkg-config file, since it is trivial.
Don't install unnecessary files as documentation.
Since I practically rewrote the entire derivation and the package is abandoned, add myself as maintainer (I guess?).
sandbox = true
set innix.conf
? (See Nix manual)nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
./result/bin/
)