{ "uuid": [ { "value": "d0ee1aae-f2fc-49d2-8865-d4912209eeea" } ], "langcode": [ { "value": "en" } ], "type": [ { "target_id": "daily_email", "target_type": "node_type", "target_uuid": "8bde1f2f-eef9-4f2d-ae9c-96921f8193d7" } ], "revision_timestamp": [ { "value": "2025-05-11T09:00:02+00:00" } ], "revision_uid": [ { "target_type": "user", "target_uuid": "b8966985-d4b2-42a7-a319-2e94ccfbb849" } ], "revision_log": [], "status": [ { "value": true } ], "uid": [ { "target_type": "user", "target_uuid": "b8966985-d4b2-42a7-a319-2e94ccfbb849" } ], "title": [ { "value": "Making ddev reproducible" } ], "created": [ { "value": "2025-01-21T00:00:00+00:00" } ], "changed": [ { "value": "2025-05-11T09:00:02+00:00" } ], "promote": [ { "value": false } ], "sticky": [ { "value": false } ], "default_langcode": [ { "value": true } ], "revision_translation_affected": [ { "value": true } ], "path": [ { "alias": "\/daily\/2025\/01\/21\/ddev", "langcode": "en" } ], "body": [ { "value": "\n
I sometimes work on projects that already has an existing environment configuration, usually using a tool like DDEV.<\/p>\n\n
Similar to using Nix, DDEV makes environments more consistent by standardising versions of PHP, nodejs, etc for each project.<\/p>\n\n
This is great, but how do you know everyone has the same version of DDEV?<\/p>\n\n
Different people having different versions of DDEV could introduce its own issues and bugs, such as pulling different images with different default package versions.<\/p>\n\n
The Nix package manager has over 100,000 packages, including DDEV.<\/p>\n\n
This means I can install DDEV via Nix and because of the flake.nix file, anyone using the same configuration will get the same version of DDEV.<\/p>\n\n
Here's a simple This approach also means I can have different versions of DDEV installed at once so I can use different versions for different projects as needed.<\/p>\n\n I also don't need it installed globally, so this only makes it available to the projects that need it.<\/p>\n\n It's a bit meta, but it works.<\/p>\n\n ",
"format": "full_html",
"processed": "\n I sometimes work on projects that already has an existing environment configuration, usually using a tool like DDEV.<\/p>\n\n Similar to using Nix, DDEV makes environments more consistent by standardising versions of PHP, nodejs, etc for each project.<\/p>\n\n This is great, but how do you know everyone has the same version of DDEV?<\/p>\n\n Different people having different versions of DDEV could introduce its own issues and bugs, such as pulling different images with different default package versions.<\/p>\n\n The Nix package manager has over 100,000 packages, including DDEV.<\/p>\n\n This means I can install DDEV via Nix and because of the flake.nix file, anyone using the same configuration will get the same version of DDEV.<\/p>\n\n Here's a simple This approach also means I can have different versions of DDEV installed at once so I can use different versions for different projects as needed.<\/p>\n\n I also don't need it installed globally, so this only makes it available to the projects that need it.<\/p>\n\n It's a bit meta, but it works.<\/p>\n\n ",
"summary": null
}
],
"feeds_item": [
{
"imported": "1970-01-01T00:33:45+00:00",
"guid": null,
"hash": "562ee3b079f3db7e10cc08cfdda26292",
"target_type": "feeds_feed",
"target_uuid": "90c85284-7ca8-4074-9178-97ff8384fe76"
}
]
}flake.nix<\/code> file to install DDEV:<\/p>\n\n
{\n inputs.nixpkgs.url = \"github:NixOS\/nixpkgs\/nixos-unstable\";\n\n outputs =\n { nixpkgs, ... }:\n let\n system = \"x86_64-linux\";\n pkgs = nixpkgs.legacyPackages.${system};\n in\n {\n devShells.${system}.default = pkgs.mkShell {\n buildInputs = with pkgs; [ ddev ];\n };\n };\n}\n<\/code><\/pre>\n\n
Enter Nix<\/h2>\n\n
flake.nix<\/code> file to install DDEV:<\/p>\n\n
{\n inputs.nixpkgs.url = \"github:NixOS\/nixpkgs\/nixos-unstable\";\n\n outputs =\n { nixpkgs, ... }:\n let\n system = \"x86_64-linux\";\n pkgs = nixpkgs.legacyPackages.${system};\n in\n {\n devShells.${system}.default = pkgs.mkShell {\n buildInputs = with pkgs; [ ddev ];\n };\n };\n}\n<\/code><\/pre>\n\n