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

shmig: init at 2017-07-24 #30554

Merged
merged 1 commit into from Oct 27, 2017
Merged

shmig: init at 2017-07-24 #30554

merged 1 commit into from Oct 27, 2017

Conversation

Ma27
Copy link
Member

@Ma27 Ma27 commented Oct 18, 2017

Motivation for this change

shmig is a simple, shell-based database migration tool which is quite helpful.

To avoid building several (possibly useless) derivations, I made the usage of MySQL, PgSQL and SQLite optional. These values are empty which causes the following error if you try to use them: shmig: unknown database type: sqlite.

Using an override expression it is possible to enable support for one of these databases.

Things done
  • Tested using sandboxing (nix.useSandbox on NixOS, or option build-use-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 nox --run "nox-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • Fits CONTRIBUTING.md.

@Ma27 Ma27 force-pushed the init/shmig-2017-07-24 branch 3 times, most recently from 1160d36 to ca162fc Compare October 19, 2017 18:03
makeFlags = [ "PREFIX=$(out)" ];

postPatch = let
replacePath = cond: replacement:
Copy link
Contributor

Choose a reason for hiding this comment

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

I think this reduces to optionalString cond ''"${replacement}"''

'';

meta = with stdenv.lib; {
description = "Database migration tool written in BASH.
Copy link
Contributor

Choose a reason for hiding this comment

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

Just a nit but is the implementation language really important information?

Copy link
Member Author

Choose a reason for hiding this comment

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

I always use the description from GitHub. However I think that you might be right, I'll fine a better one :-)

Copy link
Contributor

Choose a reason for hiding this comment

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

I don't consider it a blocker

@joachifm joachifm merged commit b601d87 into NixOS:master Oct 27, 2017
@Ma27 Ma27 deleted the init/shmig-2017-07-24 branch October 27, 2017 19:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants