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

tsearch-extras: init at 0.2 #22166

Merged
merged 1 commit into from Feb 13, 2017
Merged

tsearch-extras: init at 0.2 #22166

merged 1 commit into from Feb 13, 2017

Conversation

DerTim1
Copy link

@DerTim1 DerTim1 commented Jan 26, 2017

Motivation for this change

Add Postgresql Plugin tsearch_extras (e.g. necessary for zulip)

Can e.g. be used with:

services.postgresql = {
    enable = true;
    package = pkgs.postgresql95;
    dataDir = "/var/db/postgresql";
    extraPlugins = [ pkgs.tsearch_extras ];
  };
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
    • Linux
  • 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.

@DerTim1
Copy link
Author

DerTim1 commented Jan 27, 2017

Rebased (removed dot at the end of meta.description)

src = fetchFromGitHub {
owner = "zulip";
repo = "tsearch_extras";
rev = "560e6748bd7cfcea98efd412ca80f08cff890f9c";
Copy link
Contributor

Choose a reason for hiding this comment

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

Please consider rev = version

@@ -0,0 +1,28 @@
{ stdenv, pkgs, fetchFromGitHub, pkgconfig, postgresql }:
Copy link
Contributor

Choose a reason for hiding this comment

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

Please do not pass in all of pkgs; only stuff that's actually used.

sha256 = "1ivg9zn7f1ks31ixxwywifwhzxn6py8s5ky1djyxnb0s60zckfjg";
};

buildInputs = [ postgresql pkgconfig ];
Copy link
Contributor

Choose a reason for hiding this comment

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

pkgconfig can be specified in nativeBuildInputs

'';

meta = with stdenv.lib; {
description = "The package provides a few PostgreSQL functions that allow you to get at lower-level data about full text search";
Copy link
Contributor

Choose a reason for hiding this comment

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

Please leave out "The package provides".

Copy link
Contributor

Choose a reason for hiding this comment

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

Also consider that the description must be short and to the point so that they render nicely in console output and the like; details go in longDescription.

description = "The package provides a few PostgreSQL functions that allow you to get at lower-level data about full text search";
homepage = https://github.com/zulip/tsearch_extras/;
license = licenses.postgresql;
maintainers = [ ];
Copy link
Contributor

Choose a reason for hiding this comment

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

Please specify yourself as maintainer or leave this out; the empty list is the default.

@DerTim1
Copy link
Author

DerTim1 commented Feb 10, 2017

Thanks @joachifm for your advice and review. New commit is pushed.

description = "Provides a few PostgreSQL functions for a lower-level data full text search.";
homepage = https://github.com/zulip/tsearch_extras/;
license = licenses.postgresql;
maintainers = [ DerTim1 ];
Copy link
Contributor

Choose a reason for hiding this comment

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

I suspect this'll fail to evaluate, probably needs either with maintainers or [ maintainers.DerTim1 ].

'';

meta = with stdenv.lib; {
description = "Provides a few PostgreSQL functions for a lower-level data full text search.";
Copy link
Contributor

Choose a reason for hiding this comment

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

Please remove trailing punctuation, per the guidelines.

@DerTim1
Copy link
Author

DerTim1 commented Feb 13, 2017

Thanks, I'm still doing the same mistakes evreytime.
Fixed it!

@joachifm joachifm merged commit dd91720 into NixOS:master Feb 13, 2017
@joachifm
Copy link
Contributor

Thank you

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

3 participants