2023-08-22 20:05:09 +00:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub, testers, ddev }:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "ddev";
|
2023-10-09 19:29:22 +00:00
|
|
|
version = "1.22.3";
|
2023-08-22 20:05:09 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "ddev";
|
|
|
|
repo = "ddev";
|
|
|
|
rev = "v${version}";
|
2023-10-09 19:29:22 +00:00
|
|
|
hash = "sha256-KxBnnNs7dmNGZR048FSDoCZ7+P1IXnhH6iy7e0y+2f8=";
|
2023-08-22 20:05:09 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
vendorHash = null;
|
|
|
|
|
|
|
|
ldflags = [
|
|
|
|
"-extldflags -static"
|
|
|
|
"-X github.com/ddev/ddev/pkg/versionconstants.DdevVersion=${version}"
|
|
|
|
"-X github.com/ddev/ddev/pkg/versionconstants.SegmentKey=${version}"
|
|
|
|
];
|
|
|
|
|
|
|
|
# Tests need docker.
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
passthru.tests.version = testers.testVersion {
|
|
|
|
package = ddev;
|
|
|
|
command = ''
|
|
|
|
# DDEV will try to create $HOME/.ddev, so we set $HOME to a temporary
|
|
|
|
# directory.
|
|
|
|
export HOME=$(mktemp -d)
|
|
|
|
ddev --version
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Docker-based local PHP+Node.js web development environments";
|
|
|
|
homepage = "https://ddev.com/";
|
|
|
|
license = licenses.asl20;
|
|
|
|
platforms = platforms.unix;
|
|
|
|
mainProgram = "ddev";
|
|
|
|
maintainers = with maintainers; [ star-szr ];
|
|
|
|
};
|
|
|
|
}
|