Created
September 19, 2016 18:39
-
-
Save kvz/6e1d5e71d0dc10671957841347aefe35 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{config, pkgs, ...}: | |
{ | |
/* | |
Inspired by http://lethalman.blogspot.nl/2015/02/nixos-consul-nginx-and-containers.html | |
*/ | |
nixpkgs.config.packageOverrides = pkgs: rec { | |
consul070 = pkgs.stdenv.lib.overrideDerivation pkgs.consul (oldAttrs: { | |
name = "consul-0.7.0"; | |
src = fetchFromGitHub { | |
owner = "hashicorp"; | |
repo = "consul"; | |
rev = "v0.7.0"; | |
sha256 = "04h5y5vixjh9np9lsrk02ypbqwcq855h7l1jlnl1vmfq3sfqjds7"; | |
}; | |
}); | |
}; | |
environment.systemPackages = with pkgs; [ | |
consul | |
]; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment