diff options
author | Scott Zhu Reeves <327943+star-szr@users.noreply.github.com> | 2023-08-18 14:22:00 -0400 |
---|---|---|
committer | Anderson Torres <torres.anderson.85@protonmail.com> | 2023-08-19 04:35:25 +0000 |
commit | 6e1fe01570b8eed68e5969ee6c5fc77159891ed0 (patch) | |
tree | c7b0f94cbe3891d2b2f8e32453efc1609da84f52 /pkgs/applications/virtualization | |
parent | 3ebab3e29b5a2dfb52e7bf63f93f223c7175faa5 (diff) |
ddev: init at 1.22.1
Diffstat (limited to 'pkgs/applications/virtualization')
-rw-r--r-- | pkgs/applications/virtualization/ddev/default.nix | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/pkgs/applications/virtualization/ddev/default.nix b/pkgs/applications/virtualization/ddev/default.nix new file mode 100644 index 0000000000000..aaaca9a47b954 --- /dev/null +++ b/pkgs/applications/virtualization/ddev/default.nix @@ -0,0 +1,43 @@ +{ lib, buildGoModule, fetchFromGitHub, testers, ddev }: + +buildGoModule rec { + pname = "ddev"; + version = "1.22.1"; + + src = fetchFromGitHub { + owner = "ddev"; + repo = "ddev"; + rev = "v${version}"; + hash = "sha256-3uDdp827noiY6P7VSBXM34MTe9+MCEkNtuRQ3eFoBnk="; + }; + + 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 ]; + }; +} |