depot/third_party/nixpkgs/pkgs/applications/virtualization/ddev/default.nix
Default email 5ca88bfbb9 Project import generated by Copybara.
GitOrigin-RevId: 9f918d616c5321ad374ae6cb5ea89c9e04bf3e58
2024-07-31 10:19:44 +00:00

43 lines
1 KiB
Nix

{ lib, buildGoModule, fetchFromGitHub, testers, ddev }:
buildGoModule rec {
pname = "ddev";
version = "1.23.3";
src = fetchFromGitHub {
owner = "ddev";
repo = "ddev";
rev = "v${version}";
hash = "sha256-+DQEXJcW0nKBvw+pWZnFJfO/7R9IjbhAl9WZvorO9Io=";
};
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 = [ ];
};
}