Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@kvz
Created September 19, 2016 18:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kvz/6e1d5e71d0dc10671957841347aefe35 to your computer and use it in GitHub Desktop.
Save kvz/6e1d5e71d0dc10671957841347aefe35 to your computer and use it in GitHub Desktop.
{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