docker-compose: move condition to package

make the default.nix self-sufficient
This commit is contained in:
zimbatm 2019-03-16 14:43:16 +01:00
parent f31c910416
commit f9c33c375e
No known key found for this signature in database
GPG key ID: 71BAF6D40C1D63D7
2 changed files with 8 additions and 9 deletions

View file

@ -1,6 +1,11 @@
{ buildCLIImage
, docker-compose
, docker-compose ? null
, python3Packages
}:
buildCLIImage {
drv = docker-compose;
drv =
if docker-compose == null
then python3Packages.docker_compose
else docker-compose # nixos 19.03+
;
}