Skip to content

Commit

Permalink
varnishPackages: pin python to varnish python version
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonathan Ringer committed Aug 15, 2019
1 parent c74db73 commit 9fe0ee5
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 9 deletions.
2 changes: 2 additions & 0 deletions pkgs/servers/varnish/default.nix
Expand Up @@ -11,6 +11,8 @@ let
inherit sha256;
};

passthru.python = python;

nativeBuildInputs = with python.pkgs; [ pkgconfig docutils ] ++ extraNativeBuildInputs;
buildInputs = [
pcre libxslt groff ncurses readline libedit makeWrapper python
Expand Down
6 changes: 3 additions & 3 deletions pkgs/servers/varnish/dynamic.nix
@@ -1,4 +1,4 @@
{ stdenv, fetchFromGitHub, autoreconfHook, pkgconfig, varnish, python, docutils }:
{ stdenv, fetchFromGitHub, autoreconfHook, pkgconfig, varnish, docutils }:

stdenv.mkDerivation rec {
version = "0.3";
Expand All @@ -11,8 +11,8 @@ stdenv.mkDerivation rec {
sha256 = "12a42lbv0vf6fn3qnvngw893kmbd006f8pgab4ir7irc8855xjgf";
};

nativeBuildInputs = [ pkgconfig docutils autoreconfHook ];
buildInputs = [ varnish python ];
nativeBuildInputs = [ pkgconfig docutils autoreconfHook varnish.python ];
buildInputs = [ varnish ];
postPatch = ''
substituteInPlace Makefile.am --replace "''${LIBVARNISHAPI_DATAROOTDIR}/aclocal" "${varnish.dev}/share/aclocal"
'';
Expand Down
13 changes: 10 additions & 3 deletions pkgs/servers/varnish/modules.nix
@@ -1,4 +1,4 @@
{ stdenv, fetchFromGitHub, autoreconfHook, pkgconfig, varnish, python, docutils, removeReferencesTo }:
{ stdenv, fetchFromGitHub, autoreconfHook, pkgconfig, varnish, docutils, removeReferencesTo }:

stdenv.mkDerivation rec {
version = "0.14.0";
Expand All @@ -11,8 +11,15 @@ stdenv.mkDerivation rec {
sha256 = "17fkbr4i70qgdqsrx1x28ag20xkfyz1v3q3d3ywmv409aczqhm40";
};

nativeBuildInputs = [ pkgconfig autoreconfHook docutils removeReferencesTo ];
buildInputs = [ varnish python ];
nativeBuildInputs = [
autoreconfHook
docutils
pkgconfig
removeReferencesTo
varnish.python # use same python version as varnish server
];

buildInputs = [ varnish ];

postPatch = ''
substituteInPlace bootstrap --replace "''${dataroot}/aclocal" "${varnish.dev}/share/aclocal"
Expand Down
6 changes: 3 additions & 3 deletions pkgs/servers/varnish/rtstatus.nix
@@ -1,4 +1,4 @@
{ stdenv, fetchurl, pkgconfig, varnish, python, docutils }:
{ stdenv, fetchurl, pkgconfig, varnish, docutils }:

stdenv.mkDerivation rec {
version = "1.2.0";
Expand All @@ -9,8 +9,8 @@ stdenv.mkDerivation rec {
sha256 = "0hll1aspgpv1daw5sdbn5w1d6birchxgapzb6zi1nhahjlimy4ly";
};

nativeBuildInputs = [ pkgconfig docutils ];
buildInputs = [ varnish python ];
nativeBuildInputs = [ pkgconfig docutils varnish.python ];
buildInputs = [ varnish ];
configureFlags = [ "VMOD_DIR=$(out)/lib/varnish/vmods" ];

meta = with stdenv.lib; {
Expand Down

0 comments on commit 9fe0ee5

Please sign in to comment.