-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
libspng: init at 0.7.0-rc3 #136274
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
Merged
Merged
libspng: init at 0.7.0-rc3 #136274
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 |
|---|---|---|
| @@ -0,0 +1,56 @@ | ||
| { lib | ||
| , fetchFromGitHub | ||
| , stdenv | ||
| , zlib | ||
| , ninja | ||
| , meson | ||
| , pkg-config | ||
| , cmake | ||
| , libpng | ||
| }: | ||
|
|
||
| stdenv.mkDerivation rec { | ||
| pname = "libspng"; | ||
| version = "0.7.0-rc3"; | ||
|
|
||
| src = fetchFromGitHub { | ||
| owner = "randy408"; | ||
| repo = pname; | ||
| rev = "v${version}"; | ||
| sha256 = "0n91mr06sr34cqq91738251iaw21h5c4jgjpn0kqfx69ywxcl9fj"; | ||
| }; | ||
|
|
||
| doCheck = true; | ||
|
|
||
| mesonBuildType = "release"; | ||
|
|
||
| mesonFlags = [ | ||
| # this is required to enable testing | ||
| # https://github.com/randy408/libspng/blob/bc383951e9a6e04dbc0766f6737e873e0eedb40b/tests/README.md#testing | ||
| "-Ddev_build=true" | ||
| ]; | ||
|
|
||
| outputs = [ "out" "dev" ]; | ||
|
|
||
| checkInputs = [ | ||
| cmake | ||
| libpng | ||
| ]; | ||
|
|
||
| buildInputs = [ | ||
| pkg-config | ||
| zlib | ||
| ]; | ||
|
|
||
| nativeBuildInputs = [ | ||
| ninja | ||
| meson | ||
| ]; | ||
|
|
||
| meta = with lib; { | ||
| description = "Simple, modern libpng alternative"; | ||
| homepage = "https://github.com/randy408/libspng"; | ||
| license = with licenses; [ bsd2 ]; | ||
| maintainers = with maintainers; [ humancalico ]; | ||
| }; | ||
| } | ||
This file contains hidden or 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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think you need different build steps here https://libspng.org/docs/build/
The default build step is running
make. You'll probably need to include your custom buildPhaseWhen you build it, can you ls into ./result and give the content of the output ? just to make sure it build correctly.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
From what I understand the meson build hooks run automatically. Not sure if this is a debug build or a release build. Also unsure if the checkPhase runs by default or not in this case
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was checking in libpng, I think you also have to define manually the outputs
I think the include stuff is supposed to be part of dev
the build runs in two ways, on the build thing it talks about a cmake way and a meson way. If you remove the meson dependency, does it still build ?
If you run the build with
nix build .#libspng -L -vvit should give you more verbose output and you should see if the checkphase is running.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It doesn't build without without meson or ninja
@happysalada Did a few changes. PTAL
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great!
does it produce two outputs result and result.dev
is the include directory correctly part of the result.dev ?
What is the output of the result ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The checkPhase is still not running as far as I can tell
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does it even say anything in the logs ?
It should say that it's not checking.
Otherwise, you can try the
doCheck = true;If the checkPhase doesn't run then, it should say at least why in the logs.