Conversation
drupol
left a comment
There was a problem hiding this comment.
Diff LGTM, I'll wait for another reviewer to have a look at this before merging.
|
I just made a review, why are you again requesting a review from me? |
According to github you have requested a change and therefore merging is blocked. Is this a technical error or do you still want changes? |
drupol
left a comment
There was a problem hiding this comment.
What worries me in this PR is that it might not be picked up for automatic update by the bot because the version attribute is set to 4.1.1, while the tags on the repository have a different pattern.
I don't really know what's best to do here, this is the reason why I'd like someone else to have a look.
|
Here's a diff fixing the issue and remove the extra dependency to ruby which seems to be not needed. diff --git a/pkgs/by-name/gz/gz-cmake/package.nix b/pkgs/by-name/gz/gz-cmake/package.nix
index ad8654503d..094ecfc2ab 100644
--- a/pkgs/by-name/gz/gz-cmake/package.nix
+++ b/pkgs/by-name/gz/gz-cmake/package.nix
@@ -4,21 +4,21 @@
fetchFromGitHub,
cmake,
pkg-config,
- ruby,
doxygen,
graphviz,
}:
let
- version = "4.1.1";
- tag_version = "${lib.versions.major version}_${version}";
+ tag = "gz-cmake4_4.1.1";
+ version = lib.head (lib.tail (lib.splitString "_" tag));
in
stdenv.mkDerivation (finalAttrs: {
pname = "gz-cmake";
version = version;
+
src = fetchFromGitHub {
owner = "gazebosim";
repo = "gz-cmake";
- tag = "gz-cmake${tag_version}";
+ inherit tag;
hash = "sha256-BWgRm+3UW65Cu7TqXtFFG05JlYF52dbpAsIE8aDnJM0=";
};
@@ -29,10 +29,6 @@
graphviz
];
- buildInputs = [
- ruby
- ];
-
cmakeFlags = [
"-DBUILD_TESTING=OFF"
];
@@ -40,7 +36,7 @@
meta = {
description = "CMake modules to build Gazebo projects";
homepage = "https://github.com/gazebosim/gz-cmake";
- changelog = "https://github.com/gazebosim/gz-cmake/releases/tag/gz-cmake${tag_version}";
+ changelog = "https://github.com/gazebosim/gz-cmake/releases/tag/${tag}";
license = lib.licenses.asl20;
platforms = lib.platforms.unix;
maintainers = with lib.maintainers; [ guelakais ]; |
268fd69 to
2cefab3
Compare
done |
|
|
|
After asking on Matrix about this and being wrong on how the tag/version should be handled, I merged it. Thanks ! |
|
Now comes the hard part: packaging ament_cmake! |
Things done
nix.conf? (See Nix manual)sandbox = relaxedsandbox = truenix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/)Add a 👍 reaction to pull requests you find important.