Last active
December 29, 2017 15:10
-
-
Save grandynguyen/0c0b764c77def608afe34299a6240430 to your computer and use it in GitHub Desktop.
docker_compose 1.18.0 latest nixpkgs override overlay
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
self: super: | |
{ | |
python = let packageOverrides = pythonSelf: pythonSuper: { | |
docker = pythonSuper.docker.overridePythonAttrs (oldAttrs: rec { | |
name = "docker-2.7.0"; | |
src = super.fetchurl { | |
url = "mirror://pypi/d/docker/${name}.tar.gz"; | |
sha256 = "0v57sqhbjfiinzkhy7dnj30pryfsaldlxmy6cd41r8wfiqq4hhhl"; | |
}; | |
}); | |
texttable = pythonSuper.texttable.overridePythonAttrs (oldAttrs: rec { | |
name = "texttable-1.1.1"; | |
src = super.fetchurl { | |
url = "mirror://pypi/t/texttable/${name}.tar.gz"; | |
sha256 = "174wfxbq0kssvm9l95bvdl3a0g26fi5s9syiqijc57qa8wflsrs4"; | |
}; | |
}); | |
}; in super.python.override { inherit packageOverrides; }; | |
docker_compose = super.docker_compose.overridePythonAttrs (oldAttrs: rec { | |
name = "docker-compose-1.18.0"; | |
src = self.fetchurl { | |
url = "mirror://pypi/d/docker-compose/${name}.tar.gz"; | |
sha256 = "0yfka41raqrg44a3yyvianciv1l8camh0xipfnxqy0c54vzcnc19"; | |
}; | |
}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Tested on channel nixos-17.09.
The above is a nixpkgs overlay that allows you to install docker-compose 1.18.0
Usage
Place the above in
~/.config/nixpkgs/overlays/docker-compose-overlay.nix
Run
nix-env -iA nixos.docker_compose
Confirm that docker-compose 1.18.0 is installed with
docker-compose --version