3
0
Fork 0
forked from mirrors/nixpkgs

influxdb: parametrize default.nix to prepare packaging of 1.0 (#17161)

This commit is contained in:
Christine Koppelt 2016-07-23 01:08:33 +02:00 committed by Rok Garbas
parent e6e873beca
commit f6d7a567a5
3 changed files with 17 additions and 10 deletions

View file

@ -1,19 +1,13 @@
{ lib, buildGoPackage, fetchFromGitHub }:
{ lib, buildGoPackage, fetchFromGitHub, src, version }:
buildGoPackage rec {
name = "influxdb-${version}";
version = "0.13.0";
goPackagePath = "github.com/influxdata/influxdb";
src = fetchFromGitHub {
owner = "influxdata";
repo = "influxdb";
rev = "v${version}";
sha256 = "0f7af5jb1f65qnslhc7zccml1qvk6xx5naczqfsf4s1zc556fdi4";
};
excludedPackages = "test";
inherit src;
# Generated with the `gdm2nix.rb` script and the `Godeps` file from the
# influxdb repo root.

View file

@ -0,0 +1,13 @@
{ lib, buildGoPackage, fetchFromGitHub }@args:
import ./default.nix (args // rec {
version = "0.13.0";
src = fetchFromGitHub {
owner = "influxdata";
repo = "influxdb";
rev = "v${version}";
sha256 = "0f7af5jb1f65qnslhc7zccml1qvk6xx5naczqfsf4s1zc556fdi4";
};
})

View file

@ -10369,7 +10369,7 @@ in
riak = callPackage ../servers/nosql/riak/2.1.1.nix { };
influxdb = (callPackage ../servers/nosql/influxdb { }).bin // { outputs = [ "bin" ]; };
influxdb = (callPackage ../servers/nosql/influxdb/v0.nix { }).bin // { outputs = [ "bin" ]; };
hyperdex = callPackage ../servers/nosql/hyperdex { };