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
obs-studio: apply fix for fdk-aac v2.0.0 #53008
Conversation
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.
LGTM as it fixes compilation 👼
But patches sha256 needs to be updated 👼
patches = [ | ||
(fetchpatch { | ||
url = "https://patch-diff.githubusercontent.com/raw/obsproject/obs-studio/pull/1557.diff"; | ||
sha256 = "0xq3sh1g8j58mpa4ryi9agqqpr41prrzagxmqafkbgfv6fjv3h0c"; |
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'm guessing the patch has changed :
fixed-output derivation produced path '/nix/store/ij8k22jgavc1nzjvj4hy72av4iwlfswg-1557.diff' with sha256 hash '162fnkxh2wyn6wrrm1kzv7c2mn96kx35vlmk2qwn1nqlifbpsfyq' instead of the expected hash '0xq3sh1g8j58mpa4ryi9agqqpr41prrzagxmqafkbgfv6fjv3h0c'
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.
This is strange:
➜ nix-prefetch-url https://patch-diff.githubusercontent.com/raw/obsproject/obs-studio/pull/1557.diff
path is '/nix/store/raqc9k54zjgmxn7lwqmn0ycyhnjsr179-1557.diff'
0xq3sh1g8j58mpa4ryi9agqqpr41prrzagxmqafkbgfv6fjv3h0c
I think there might be some difference between how nix-prefetch-url
and fetchpatch
compute their hashes.
Answer is that fetchpatch is normalizing the patch (and change the resulting hash): https://github.com/NixOS/nixpkgs/blob/b27b443e145863b5b7f502d8beccb6767572f3c3/pkgs/build-support/fetchpatch/default.nix
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.
@nyanloutre 🤔 interesting 😅
… waiting for NixOS/nixpkgs#53008 to get merged. Signed-off-by: Vincent Demeester <vincent@sbr.pm>
Motivation for this change
Patch from pull request obsproject/obs-studio#1557
Things done
sandbox
innix.conf
on non-NixOS)nix-shell -p nox --run "nox-review wip"
./result/bin/
)nix path-info -S
before and after)