Skip to content

php.extensions.smbclient: init at 1.0.4#111515

Merged
aanderse merged 1 commit intoNixOS:masterfrom
aanderse:libsmbclient-php
Feb 9, 2021
Merged

php.extensions.smbclient: init at 1.0.4#111515
aanderse merged 1 commit intoNixOS:masterfrom
aanderse:libsmbclient-php

Conversation

@aanderse
Copy link
Copy Markdown
Member

@aanderse aanderse commented Feb 1, 2021

Motivation for this change

I'm probably going to need this at some point. I also have a sneaking suspicion that nextcloud could make use of this.

Things done
  • Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)
  • Built on platform(s)
    • NixOS
    • macOS
    • other Linux distributions
  • Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
  • Tested compilation of all pkgs that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • Determined the impact on package closure size (by running nix path-info -S before and after)
  • Ensured that relevant documentation is up to date
  • Fits CONTRIBUTING.md.

Comment thread pkgs/development/php-packages/smbclient/default.nix Outdated
@ofborg ofborg bot added the 8.has: package (new) This PR adds a new package label Feb 1, 2021
@ofborg ofborg bot requested review from Ma27, etu, globin and talyz February 1, 2021 02:36
@ofborg ofborg bot added 11.by: package-maintainer This PR was created by a maintainer of all the package it changes. 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. labels Feb 1, 2021
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
{ buildPecl, lib, pkgs }:
{ buildPecl, lib, samba, pkg-config }:

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@etu @talyz @Ma27 did we want to switch all the php packages and extensions over to this style?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Well, we could, but maybe not worth to change all packages and extensions in this PR. It's more commonly used across nixpkgs so it would be nice to follow that.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great. I'll write up a PR once I get a chance. Thanks!

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overwriting packages is not that easy when they are used indirectly.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
LIBSMBCLIENT_INCDIR = "${pkgs.samba.dev}/include/samba-4.0";
LIBSMBCLIENT_INCDIR = "${samba.dev}/include/samba-4.0";

Comment on lines 9 to 10
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
nativeBuildInputs = [ pkgs.pkg-config ];
buildInputs = [ pkgs.samba.dev ];
nativeBuildInputs = [ pkg-config ];
buildInputs = [ samba.dev ];

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also should just be samba, since we want a library here. (Though it will work either way because inputs ignore the derivation outputs.

@SuperSandro2000
Copy link
Copy Markdown
Member

This is a semi-automatic executed nixpkgs-review with nixpkgs-review-checks extension. It is checked by a human on a best effort basis and does not build all packages (e.g. lumo, tensorflow or pytorch).
If you have any questions or problems please reach out to SuperSandro2000 on IRC.

Result of nixpkgs-review pr 111515 run on x86_64-linux 1

3 packages built:
  • php73Extensions.smbclient
  • phpExtensions.smbclient (php74Extensions.smbclient)
  • php80Extensions.smbclient

@aanderse aanderse merged commit 159f0ef into NixOS:master Feb 9, 2021
@aanderse aanderse deleted the libsmbclient-php branch February 9, 2021 12:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

8.has: package (new) This PR adds a new package 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. 11.by: package-maintainer This PR was created by a maintainer of all the package it changes.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants