docker-compose: move condition to package
make the default.nix self-sufficient
This commit is contained in:
parent
f31c910416
commit
f9c33c375e
2 changed files with 8 additions and 9 deletions
|
@ -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+
|
||||
;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue