mirror of
https://github.com/nix-community/docker-nixpkgs.git
synced 2026-01-12 04:40:42 -05:00
docker-compose: move condition to package
make the default.nix self-sufficient
This commit is contained in:
@@ -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+
|
||||
;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user