Skip to content
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

sqldiff: init at 3.33.0 #69112

Merged
merged 4 commits into from Sep 19, 2020
Merged

sqldiff: init at 3.33.0 #69112

merged 4 commits into from Sep 19, 2020

Conversation

JohnAZoidberg
Copy link
Member

Motivation for this change

It's part of the SQLite tools: https://www.sqlite.org/download.html, https://www.sqlite.org/sqldiff.html
and can be built from the sources that we already have.
It generates SQL statements that represent the difference of two SQLite databases.

@pesterhazy why did you add lowPrio to the sqlite-analyzer package?
It's not included in any other derivation, right?

Things done
  • Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS)
  • 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 nix-review --run "nix-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.

Copy link
Contributor

@bdesham bdesham left a comment

Choose a reason for hiding this comment

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

After making the changes in this review, these tools build and run for me on macOS 10.13. (I haven’t done a review before; I hope this is a helpful and non-obnoxious way to propose changes 😬)

@@ -0,0 +1,43 @@
{ stdenv, fetchurl, unzip, sqlite, tcl }:
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
{ stdenv, fetchurl, unzip, sqlite, tcl }:
{ stdenv, fetchurl, unzip, sqlite, tcl, Foundation }:

};

nativeBuildInputs = [ unzip ];
buildInputs = [ tcl ];
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
buildInputs = [ tcl ];
buildInputs = [ tcl ] ++ stdenv.lib.optional stdenv.isDarwin Foundation;

@@ -13674,7 +13674,9 @@ in

sqlite = lowPrio (callPackage ../development/libraries/sqlite { });

sqlite-analyzer = lowPrio (callPackage ../development/libraries/sqlite/analyzer.nix { });
sqlite-analyzer = lowPrio (callPackage ../development/libraries/sqlite/tools.nix { }).sqlite-analyzer;
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
sqlite-analyzer = lowPrio (callPackage ../development/libraries/sqlite/tools.nix { }).sqlite-analyzer;
sqlite-analyzer = lowPrio (callPackage ../development/libraries/sqlite/tools.nix {
inherit (darwin.apple_sdk.frameworks) Foundation;
}).sqlite-analyzer;

sqlite-analyzer = lowPrio (callPackage ../development/libraries/sqlite/analyzer.nix { });
sqlite-analyzer = lowPrio (callPackage ../development/libraries/sqlite/tools.nix { }).sqlite-analyzer;

sqldiff = lowPrio (callPackage ../development/libraries/sqlite/tools.nix { }).sqldiff;
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
sqldiff = lowPrio (callPackage ../development/libraries/sqlite/tools.nix { }).sqldiff;
sqldiff = lowPrio (callPackage ../development/libraries/sqlite/tools.nix {
inherit (darwin.apple_sdk.frameworks) Foundation;
}).sqldiff;

@JohnAZoidberg
Copy link
Member Author

Awesome, thanks! I committed it, with you (@bdesham) as author. Can you please verify whether I didn't make any mistakes?

@bdesham
Copy link
Contributor

bdesham commented Sep 20, 2019

Yep, still works fine!

@pesterhazy
Copy link
Contributor

pesterhazy commented Sep 22, 2019 via email

@JohnAZoidberg
Copy link
Member Author

Upated, to bring up to date with sqlite proper.

@bdesham bdesham mentioned this pull request Mar 3, 2020
10 tasks
@nixos-discourse
Copy link

This pull request has been mentioned on NixOS Discourse. There might be relevant details there:

https://discourse.nixos.org/t/prs-ready-for-review-may-2019/3032/124

@Lassulus
Copy link
Member

sadly sqlite was bumped and the assertion fals

@doronbehar
Copy link
Contributor

Pushed and rebased against latest master, with 3.33.0.

@doronbehar doronbehar changed the title sqldiff: init at 3.28.0 sqldiff: init at 3.33.0 Sep 19, 2020
@doronbehar doronbehar merged commit 7fcc9a4 into NixOS:master Sep 19, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants