ddev: init at 1.22.1
This commit is contained in:
parent
3ebab3e29b
commit
6e1fe01570
43
pkgs/applications/virtualization/ddev/default.nix
Normal file
43
pkgs/applications/virtualization/ddev/default.nix
Normal file
|
@ -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 ];
|
||||
};
|
||||
}
|
|
@ -7745,6 +7745,8 @@ with pkgs;
|
|||
|
||||
d2 = callPackage ../tools/text/d2 { };
|
||||
|
||||
ddev = callPackage ../applications/virtualization/ddev { };
|
||||
|
||||
easeprobe = callPackage ../tools/misc/easeprobe { };
|
||||
|
||||
emscripten = callPackage ../development/compilers/emscripten {
|
||||
|
|
Loading…
Reference in a new issue