mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-11-05 17:56:46 +01:00
4007ceb6af
* treewide Drop unneeded go 1.12 overrides * Fix packr to be go module compatible. I updated to version 2.8.0 which is the latest on master. Then due to the 2 different sets of go modules which are used, I split the build into two different derivations, then merged them togethor using symlinkJoin to have the same output structure as the existing derivation. * Remove consul dependency on go1.12 I updated the consul version to 1.7.2 and flipped it to building using modules. * Remove go1.12 from perkeep. Update the version to the latest unstable on master. * Update scaleway-cli to not be pinned to go1.12 Switched the version to 1.20 * Update prometheus-varnish-exporter to not depend on go1.12 * Update lnd to build with go1.12 Updated the version Forced only building subpackages with main to prevent panics over multiple modules in one repo * Remove go1.12 from openshift Had to update the version to 4.1.0 and do a bit of munging to get this to work * Remove go1.12 completely. These are no longer needed. * Update bazel-watcher and make it build with go 1.14
41 lines
1.6 KiB
Nix
41 lines
1.6 KiB
Nix
{ stdenv, buildGoModule, fetchFromGitHub }:
|
|
|
|
buildGoModule rec {
|
|
pname = "consul";
|
|
version = "1.7.2";
|
|
rev = "v${version}";
|
|
|
|
# Note: Currently only release tags are supported, because they have the Consul UI
|
|
# vendored. See
|
|
# https://github.com/NixOS/nixpkgs/pull/48714#issuecomment-433454834
|
|
# If you want to use a non-release commit as `src`, you probably want to improve
|
|
# this derivation so that it can build the UI's JavaScript from source.
|
|
# See https://github.com/NixOS/nixpkgs/pull/49082 for something like that.
|
|
# Or, if you want to patch something that doesn't touch the UI, you may want
|
|
# to apply your changes as patches on top of a release commit.
|
|
src = fetchFromGitHub {
|
|
owner = "hashicorp";
|
|
repo = pname;
|
|
inherit rev;
|
|
sha256 = "1q587d8aqfkwg4fymr56fnf038vkxbdqz5yilz96dzny27dhspj4";
|
|
};
|
|
|
|
# This corresponds to paths with package main - normally unneeded but consul
|
|
# has a split module structure in one repo
|
|
subPackages = ["." "connect/certgen"];
|
|
|
|
modSha256 = "164834gr8a7qvp72ccjpkbbg4h8idrcxvcp1fl7yi59iqsswfr7b";
|
|
|
|
preBuild = ''
|
|
buildFlagsArray+=("-ldflags" "-X github.com/hashicorp/consul/version.GitDescribe=v${version} -X github.com/hashicorp/consul/version.Version=${version} -X github.com/hashicorp/consul/version.VersionPrerelease=")
|
|
'';
|
|
|
|
meta = with stdenv.lib; {
|
|
description = "Tool for service discovery, monitoring and configuration";
|
|
homepage = "https://www.consul.io/";
|
|
platforms = platforms.linux ++ platforms.darwin;
|
|
license = licenses.mpl20;
|
|
maintainers = with maintainers; [ pradeepchhetri vdemeester nh2 ];
|
|
};
|
|
}
|