diff --git a/pkgs/by-name/ea/earthbuild/package.nix b/pkgs/by-name/ea/earthbuild/package.nix new file mode 100644 index 0000000000000..5d9b5af07a054 --- /dev/null +++ b/pkgs/by-name/ea/earthbuild/package.nix @@ -0,0 +1,72 @@ +{ + lib, + buildGoModule, + fetchFromGitHub, + stdenv, + testers, +}: + +buildGoModule (finalAttrs: { + pname = "earthbuild"; + version = "0.8.17"; + + src = fetchFromGitHub { + owner = "EarthBuild"; + repo = "earthbuild"; + rev = "v${finalAttrs.version}"; + hash = "sha256-ATdNA9KjAXsxMiez3AF6TxK7OujNDABY8jB6hXeSNpc="; + }; + + vendorHash = "sha256-49FWzLHEbgwWOXT1uPshdY5risFHInA541Mfhu7v08A="; + + __structuredAttrs = true; + # BUG: when provided as a list and __structuredAttrs is true, only the first elements gets build + # It's because the Go builder at pkgs/build-support/go/module.nix:325-326 reads $subPackages as a space-separated string + subPackages = "cmd/earthly cmd/debugger"; + + env.CGO_ENABLED = 0; + + ldflags = [ + "-s" + "-w" + "-X main.Version=v${finalAttrs.version}" + "-X main.DefaultBuildkitdImage=docker.io/earthbuild/buildkitd:v${finalAttrs.version}" + "-X main.GitSha=v${finalAttrs.version}" + ] + ++ lib.optionals stdenv.hostPlatform.isLinux [ + "-extldflags '-static'" + ]; + + tags = [ + "dfrunmount" + "dfrunnetwork" + "dfrunsecurity" + "dfsecrets" + "dfssh" + ]; + + postInstall = '' + mv $out/bin/debugger $out/bin/earthly-debugger + ln -s $out/bin/earthly-debugger $out/bin/earth-debugger + ln -s $out/bin/earthly $out/bin/earth + ''; + + passthru = { + tests.version = testers.testVersion { + package = finalAttrs.finalPackage; + version = "v${finalAttrs.version}"; + }; + }; + + meta = { + description = "Build automation for the container era"; + mainProgram = "earth"; + homepage = "https://earthbuild.dev/"; + changelog = "https://github.com/EarthBuild/earthbuild/releases/tag/v${finalAttrs.version}"; + license = lib.licenses.mpl20; + maintainers = with lib.maintainers; [ + zoedsoupe + konradmalik + ]; + }; +}) diff --git a/pkgs/by-name/ea/earthly/package.nix b/pkgs/by-name/ea/earthly/package.nix deleted file mode 100644 index f941009299fc4..0000000000000 --- a/pkgs/by-name/ea/earthly/package.nix +++ /dev/null @@ -1,70 +0,0 @@ -{ - lib, - buildGoModule, - fetchFromGitHub, - stdenv, - testers, - earthly, -}: - -buildGoModule (finalAttrs: { - pname = "earthly"; - version = "0.8.16"; - - src = fetchFromGitHub { - owner = "earthly"; - repo = "earthly"; - rev = "v${finalAttrs.version}"; - hash = "sha256-2+Ya5i6V2QDzHsYR+Ro14u0VWR3wrQJHZRXBatGC8BA="; - }; - - vendorHash = "sha256-kEgg7zrT69X4yrsGtLyvnrGQ7+sXaEzdqd4Fz7rpFyg="; - subPackages = [ - "cmd/earthly" - "cmd/debugger" - ]; - - env.CGO_ENABLED = 0; - - ldflags = [ - "-s" - "-w" - "-X main.Version=v${finalAttrs.version}" - "-X main.DefaultBuildkitdImage=docker.io/earthly/buildkitd:v${finalAttrs.version}" - "-X main.GitSha=v${finalAttrs.version}" - "-X main.DefaultInstallationName=earthly" - ] - ++ lib.optionals stdenv.hostPlatform.isLinux [ - "-extldflags '-static'" - ]; - - tags = [ - "dfrunmount" - "dfrunnetwork" - "dfrunsecurity" - "dfsecrets" - "dfssh" - ]; - - postInstall = '' - mv $out/bin/debugger $out/bin/earthly-debugger - ''; - - passthru = { - tests.version = testers.testVersion { - package = earthly; - version = "v${finalAttrs.version}"; - }; - }; - - meta = { - description = "Build automation for the container era"; - homepage = "https://earthly.dev/"; - changelog = "https://github.com/earthly/earthly/releases/tag/v${finalAttrs.version}"; - license = lib.licenses.mpl20; - maintainers = with lib.maintainers; [ - zoedsoupe - konradmalik - ]; - }; -}) diff --git a/pkgs/top-level/aliases.nix b/pkgs/top-level/aliases.nix index e707d6d9a6184..020dd55766ec5 100644 --- a/pkgs/top-level/aliases.nix +++ b/pkgs/top-level/aliases.nix @@ -651,6 +651,7 @@ mapAliases { e17gtk = throw "'e17gtk' has been removed because it was archived upstream."; # Added 2026-01-15 e-search = throw "'e-search' has been removed due to outdated KF5 dependencies"; # Added 2026-05-01 eagle = throw "'eagle' has been removed because official support ends 2026-06-07. It depended on qt5 webengine, which was removed for its numerous security issues. For more details, see the autodesk announcement at https://www.autodesk.com/support/technical/article/caas/sfdcarticles/sfdcarticles/Autodesk-EAGLE-Announcement-Next-steps-and-FAQ.html"; # Added 2026-04-26 + earthly = warnAlias "'earthly' has been discontinued. It is replaced by a community fork 'earthbuild'" earthbuild; # Added 2025-11-19 eask = throw "'eask' has been renamed to/replaced by 'eask-cli'"; # Converted to throw 2025-10-27 easyloggingpp = throw "easyloggingpp has been removed, as it is deprecated upstream and does not build with CMake 4"; # Added 2025-09-17 ebpf-verifier = warnAlias "'ebpf-verifier' has been renamed to 'prevail'" prevail; # Added 2026-04-01