influxdb: parametrize default.nix to prepare packaging of 1.0 (#17161)
This commit is contained in:
parent
e6e873beca
commit
f6d7a567a5
@ -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.
|
||||
|
13
pkgs/servers/nosql/influxdb/v0.nix
Normal file
13
pkgs/servers/nosql/influxdb/v0.nix
Normal 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";
|
||||
};
|
||||
})
|
@ -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 { };
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user