-
-
Notifications
You must be signed in to change notification settings - Fork 13k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ddev: init at 1.21.4 #210579
ddev: init at 1.21.4 #210579
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
@@ -0,0 +1,45 @@ | ||||||||||||||||||||||||||||||||||||||||||||||||||||
{ lib | ||||||||||||||||||||||||||||||||||||||||||||||||||||
, bash | ||||||||||||||||||||||||||||||||||||||||||||||||||||
, curl | ||||||||||||||||||||||||||||||||||||||||||||||||||||
, docker | ||||||||||||||||||||||||||||||||||||||||||||||||||||
, docker-compose | ||||||||||||||||||||||||||||||||||||||||||||||||||||
, fetchFromGitHub | ||||||||||||||||||||||||||||||||||||||||||||||||||||
, git | ||||||||||||||||||||||||||||||||||||||||||||||||||||
, go | ||||||||||||||||||||||||||||||||||||||||||||||||||||
, pkgs | ||||||||||||||||||||||||||||||||||||||||||||||||||||
, stdenv | ||||||||||||||||||||||||||||||||||||||||||||||||||||
, testers | ||||||||||||||||||||||||||||||||||||||||||||||||||||
, ddev }: | ||||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||||||||
let | ||||||||||||||||||||||||||||||||||||||||||||||||||||
pname = "ddev"; | ||||||||||||||||||||||||||||||||||||||||||||||||||||
version = "1.21.6"; | ||||||||||||||||||||||||||||||||||||||||||||||||||||
in | ||||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||||||||
stdenv.mkDerivation { | ||||||||||||||||||||||||||||||||||||||||||||||||||||
name = pname; | ||||||||||||||||||||||||||||||||||||||||||||||||||||
version = version; | ||||||||||||||||||||||||||||||||||||||||||||||||||||
src = fetchFromGitHub { | ||||||||||||||||||||||||||||||||||||||||||||||||||||
owner = "ddev"; | ||||||||||||||||||||||||||||||||||||||||||||||||||||
repo = pname; | ||||||||||||||||||||||||||||||||||||||||||||||||||||
rev = "v${version}"; | ||||||||||||||||||||||||||||||||||||||||||||||||||||
sha256 = "sha256-Wjg0Yxo/ulY6R6hhUMFvNZUSwpXENmAHU7GPbgdw7tw="; | ||||||||||||||||||||||||||||||||||||||||||||||||||||
}; | ||||||||||||||||||||||||||||||||||||||||||||||||||||
Comment on lines
+15
to
+28
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||||||||||||||||||||||||||||||||||||||||||||||
buildInputs = [ bash curl git go ]; | ||||||||||||||||||||||||||||||||||||||||||||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Please patch that the build requires a git clone. We can replace the values returned by git with dummy values or version.
Also please split the packages for cross compilation into nativeBuildInputs and buildInputs. |
||||||||||||||||||||||||||||||||||||||||||||||||||||
makeFLags = [ "SHELL=${bash}/bin/bash" ]; | ||||||||||||||||||||||||||||||||||||||||||||||||||||
buildFlags = ["build"]; | ||||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||||||||
passthru.tests.version = testers.testVersion { | ||||||||||||||||||||||||||||||||||||||||||||||||||||
package = ddev; | ||||||||||||||||||||||||||||||||||||||||||||||||||||
command = "HOME=$(mktemp -d) ddev --version"; | ||||||||||||||||||||||||||||||||||||||||||||||||||||
version = "v${version}"; | ||||||||||||||||||||||||||||||||||||||||||||||||||||
}; | ||||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||||||||
meta = with lib; { | ||||||||||||||||||||||||||||||||||||||||||||||||||||
description = "Docker-based local PHP + Node.js web development environments"; | ||||||||||||||||||||||||||||||||||||||||||||||||||||
homepage = "https://ddev.readthedocs.io"; | ||||||||||||||||||||||||||||||||||||||||||||||||||||
license = licenses.asl20; | ||||||||||||||||||||||||||||||||||||||||||||||||||||
maintainers = with maintainers; [ jgonyea ]; | ||||||||||||||||||||||||||||||||||||||||||||||||||||
}; | ||||||||||||||||||||||||||||||||||||||||||||||||||||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please use buildGoModule