-
-
Notifications
You must be signed in to change notification settings - Fork 14.2k
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
vlc: add aarch64-darwin and x86_64-darwin to platforms #209086
Conversation
I guess reformatting the files with |
I'll reformat it with |
20134b3
to
28c5f4e
Compare
++ optionals skins2Support | ||
(with xorg; [ freetype libXext libXinerama libXpm ]) |
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 original default.nix
has
optionals skins2Support (with xorg; [
freetype
libXext
libXinerama
libXpm
])
so reformatting with nixfmt
and then nixpkgs-fmt
causes inconsistencies. I suggest leaving the original content untouched instead.
src = fetchurl { | ||
url = "http://get.videolan.org/vlc/${version}/vlc-${version}.tar.xz"; | ||
sha256 = "sha256-VwlEOcNl2KqLm0H6MIDMDu8r7+YCW7XO9yKszGJa7ew="; | ||
srcs = rec { |
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.
srcs
and meta
should be declared separately for the two derivations: otherwise, linux.nix
would still be evaluable on darwin, and thus ibtool errors.
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.
Do I have to declare the entirety of meta separately? Or can I declare it once and then append the platforms field?
I've now declared srcs separately and the platforms for meta (but not descriptions, and etc) separately but I still get the same ibtool error.
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.
Oh, I checked the expressions in nixpkgs, and I think I'm wrong. Sorry for the inconvenience! It should be OK to inherit both of them. Let's see if ofborg evals.
c3f231f
to
5ae055b
Compare
5ae055b
to
2410b92
Compare
This is ugly as hell. First, it adds a binary-only package as if it was the same thing as a pure source. Second, it renames files without notice. And third, I am far from being interested in keeping maintenance of a blob for a platform I have no access. Create something like |
I realize now that binaries are undesirable, I'll just close this for now. Sorry for wasting the time of everyone who reviewed this. |
Binaries are not undesirable per se. And, as an organization, NixOS/nixpkgs is not hostile to binary-only packages. Sometimes binary-only packages are the only known option (nvidia blobs, boostrap compilers) or the source compilations is overly prohibitive (some Java packages). |
Description of changes
Adds a darwin version of VLC.
Files formatted with nixfmt.
nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD"
fails because it cannot findibtool
which is bundled with Xcode (it isn't a nix package, but it is on my system even though nix-shell doesn't find it.)I did not add myself to the maintainers list.
Things done
sandbox = true
set innix.conf
? (See Nix manual)nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD"
. Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/
)nixos/doc/manual/md-to-db.sh
to update generated release notes