Created
October 11, 2017 09:27
-
-
Save oscarduignan/20991f9289403eb3ec81e5f281b2df66 to your computer and use it in GitHub Desktop.
Get the latest version of docker-compose with nixpkgs which requires overriding texttable dependency version
This file contains 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
{ | |
packageOverrides = pkgs: with pkgs; rec { | |
docker_compose = pkgs.docker_compose.override (oldAttrs: { | |
texttable = python.pkgs.buildPythonPackage rec { | |
name = "texttable-0.9.1"; | |
src = fetchurl { | |
url = "mirror://pypi/t/texttable/${name}.tar.gz"; | |
sha256 = "119041773ff03596b56392532f9315cb3a3116e404fd6f36e76a7dc088d95c79"; | |
}; | |
}; | |
}); | |
latest_docker_compose = docker_compose.overrideDerivation (oldAttrs: rec { | |
name = "docker-compose-1.16.1"; | |
src = fetchurl { | |
url = "mirror://pypi/d/docker-compose/${name}.tar.gz"; | |
sha256 = "fb46a6a2c4d193a3ff1e4d7208eea920b629c81dc92257c87f3f93095cfb0bdf"; | |
}; | |
}); | |
base = buildEnv { | |
name = "base"; | |
paths = [ | |
latest_docker_compose | |
]; | |
}; | |
}; | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
For future reference, I got a recommendation from fearlessKim[m] on #nixos on freenode to look at overlays when I asked for some feedback on my approach and I have attempted to reimplement the above using them at https://gist.github.com/oscarduignan/6ce341dd02061b7cfd295a8ba7b8b826 probably needs some refining as it was mostly trial and error