Skip to content
This repository was archived by the owner on Apr 12, 2021. It is now read-only.
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: NixOS/nixpkgs-channels
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 0ddb9e04957e
Choose a base ref
...
head repository: NixOS/nixpkgs-channels
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 00ef72610c82
Choose a head ref
  • 7 commits
  • 12 files changed
  • 6 contributors

Commits on May 4, 2019

  1. postgresql: always create the $out/bin directory

    This is needed because some PostgreSQL plugins don't have a bin
    directory. If only these plugins are listed in cfg.extraPlugins buildEnv
    will turn $out/bin into a symbolic link to ${pg}/bin. Lateron we try to
    rm $out/bin/{pg_config,postgres,pg_ctl} which will then fail because
    $out/bin will be read-only.
    basvandijk authored and marsam committed May 4, 2019
    Copy the full SHA
    517c52e View commit details

Commits on Jul 16, 2019

  1. Copy the full SHA
    475f1eb View commit details
  2. Copy the full SHA
    662fcf6 View commit details
  3. Merge pull request #58251 from marsam/postgresql-plugins-bin

    postgresql: always create the bin directory in postgresqlAndPlugins
    danbst authored Jul 16, 2019
    Copy the full SHA
    4a2375c View commit details
  4. python37Packages.mahotas: 1.4.5 -> 1.4.7

    Semi-automatic update generated by
    https://github.com/ryantm/nixpkgs-update tools. This update was made
    based on information from
    https://repology.org/metapackage/python3.7-mahotas/versions
    r-ryantm authored and FRidh committed Jul 16, 2019
    Copy the full SHA
    4708662 View commit details
  5. Copy the full SHA
    49ca44c View commit details
  6. Merge pull request #64884 from serokell/fix-build-mix

    build-mix: re-add --no-deps-check flag
    grahamc authored Jul 16, 2019
    Copy the full SHA
    00ef726 View commit details
5 changes: 4 additions & 1 deletion nixos/modules/services/databases/postgresql.nix
Original file line number Diff line number Diff line change
@@ -12,10 +12,13 @@ let
else pkgs.buildEnv {
name = "postgresql-and-plugins-${(builtins.parseDrvName pg.name).version}";
paths = [ pg pg.lib ] ++ cfg.extraPlugins;
# We include /bin to ensure the $out/bin directory is created which is
# needed because we'll be removing files from that directory in postBuild
# below. See #22653
pathsToLink = [ "/" "/bin" ];
buildInputs = [ pkgs.makeWrapper ];
postBuild =
''
mkdir -p $out/bin
rm $out/bin/{pg_config,postgres,pg_ctl}
cp --target-directory=$out/bin ${pg}/bin/{postgres,pg_config,pg_ctl}
wrapProgram $out/bin/postgres --set NIX_PGLIBDIR $out/lib
2 changes: 1 addition & 1 deletion pkgs/development/beam-modules/build-mix.nix
Original file line number Diff line number Diff line change
@@ -63,7 +63,7 @@ let
export MIX_ENV=prod
export MIX_NO_DEPS=1
mix compile ${debugInfoFlag}
mix compile ${debugInfoFlag} --no-deps-check
runHook postBuild
''
4 changes: 2 additions & 2 deletions pkgs/development/python-modules/mahotas/default.nix
Original file line number Diff line number Diff line change
@@ -2,13 +2,13 @@

buildPythonPackage rec {
pname = "mahotas";
version = "1.4.5";
version = "1.4.7";

src = fetchFromGitHub {
owner = "luispedro";
repo = "mahotas";
rev = "v${version}";
sha256 = "0dm34751w1441lxq00219fqlqix5qrgc18wp1wgp7xivlz3czzcz";
sha256 = "1a3nzxb7is8n7lpxwq1fw3fr03qflig334rb1zzr2znjrhq6g94b";
};

# remove this as soon as https://github.com/luispedro/mahotas/issues/97 is fixed
4 changes: 2 additions & 2 deletions pkgs/servers/dns/knot-dns/default.nix
Original file line number Diff line number Diff line change
@@ -7,11 +7,11 @@ let inherit (stdenv.lib) optional optionals; in
# Note: ATM only the libraries have been tested in nixpkgs.
stdenv.mkDerivation rec {
name = "knot-dns-${version}";
version = "2.8.2";
version = "2.8.3";

src = fetchurl {
url = "https://secure.nic.cz/files/knot-dns/knot-${version}.tar.xz";
sha256 = "00d24361a2406392c508904fad943536bae6369981686b4951378fc1c9a5a137";
sha256 = "8a62d81e5cf3df938f469b60ed4e46d9161007c2b89fbf7ae07525fa68368bad";
};

outputs = [ "bin" "out" "dev" ];
1 change: 0 additions & 1 deletion pkgs/servers/sql/postgresql/ext/pg_cron.nix
Original file line number Diff line number Diff line change
@@ -14,7 +14,6 @@ stdenv.mkDerivation rec {
};

installPhase = ''
mkdir -p $out/bin # For buildEnv to setup proper symlinks. See #22653
mkdir -p $out/{lib,share/extension}
cp *.so $out/lib
1 change: 0 additions & 1 deletion pkgs/servers/sql/postgresql/ext/pg_similarity.nix
Original file line number Diff line number Diff line change
@@ -13,7 +13,6 @@ stdenv.mkDerivation {
buildInputs = [ postgresql gcc ];
buildPhase = "USE_PGXS=1 make";
installPhase = ''
mkdir -p $out/bin # for buildEnv to setup proper symlinks
install -D pg_similarity.so -t $out/lib/
install -D ./{pg_similarity--unpackaged--1.0.sql,pg_similarity--1.0.sql,pg_similarity.control} -t $out/share/postgresql/extension
'';
1 change: 0 additions & 1 deletion pkgs/servers/sql/postgresql/ext/pgjwt.nix
Original file line number Diff line number Diff line change
@@ -13,7 +13,6 @@ stdenv.mkDerivation rec {

buildPhase = ":";
installPhase = ''
mkdir -p $out/bin # current postgresql extension mechanism in nixos requires bin directory
mkdir -p $out/share/postgresql/extension
cp pg*sql *.control $out/share/postgresql/extension
'';
1 change: 0 additions & 1 deletion pkgs/servers/sql/postgresql/ext/pgroonga.nix
Original file line number Diff line number Diff line change
@@ -15,7 +15,6 @@ stdenv.mkDerivation rec {
makeFlags = [ "HAVE_MSGPACK=1" ];

installPhase = ''
mkdir -p $out/bin
install -D pgroonga.so -t $out/lib/
install -D ./{pgroonga-*.sql,pgroonga.control} -t $out/share/postgresql/extension
'';
1 change: 0 additions & 1 deletion pkgs/servers/sql/postgresql/ext/pgrouting.nix
Original file line number Diff line number Diff line change
@@ -15,7 +15,6 @@ stdenv.mkDerivation rec {
};

installPhase = ''
mkdir -p $out/bin # for buildEnv, see https://github.com/NixOS/nixpkgs/issues/22653
install -D lib/*.so -t $out/lib
install -D sql/pgrouting--${version}.sql -t $out/share/postgresql/extension
install -D sql/common/pgrouting.control -t $out/share/postgresql/extension
1 change: 0 additions & 1 deletion pkgs/servers/sql/postgresql/ext/plv8.nix
Original file line number Diff line number Diff line change
@@ -23,7 +23,6 @@ stdenv.mkDerivation rec {
'';

installPhase = ''
mkdir -p $out/bin # For buildEnv to setup proper symlinks. See #22653
install -D plv8*.so -t $out/lib
install -D {plls,plcoffee,plv8}{--${version}.sql,.control} -t $out/share/postgresql/extension
'';
7 changes: 0 additions & 7 deletions pkgs/servers/sql/postgresql/ext/timescaledb.nix
Original file line number Diff line number Diff line change
@@ -36,13 +36,6 @@ stdenv.mkDerivation rec {
done
'';

postInstall = ''
# work around an annoying bug, by creating $out/bin, so buildEnv doesn't freak out later
# see https://github.com/NixOS/nixpkgs/issues/22653
mkdir -p $out/bin
'';

meta = with stdenv.lib; {
description = "Scales PostgreSQL for time-series data via automatic partitioning across time and space";
homepage = https://www.timescale.com/;
1 change: 0 additions & 1 deletion pkgs/servers/sql/postgresql/ext/tsearch_extras.nix
Original file line number Diff line number Diff line change
@@ -15,7 +15,6 @@ stdenv.mkDerivation rec {
buildInputs = [ postgresql ];

installPhase = ''
mkdir -p $out/bin
install -D tsearch_extras.so -t $out/lib/
install -D ./{tsearch_extras--1.0.sql,tsearch_extras.control} -t $out/share/postgresql/extension
'';