summary refs log tree commit diff
path: root/pkgs/development/tools/earthly/default.nix
diff options
context:
space:
mode:
authorMatheus de Souza Pessanha <matheus_pessanha2001@outlook.com>2021-05-02 13:30:24 -0300
committerMatheus de Souza Pessanha <matheus_pessanha2001@outlook.com>2021-05-10 13:01:27 -0300
commita669f2a0e447db236e22ac19244ed03c276d0a42 (patch)
tree7fc7eeeb9ef68c717512c3fe07edd08fcab9aa60 /pkgs/development/tools/earthly/default.nix
parent6bba03c7bce7c717f221273689f98c83c72c50f5 (diff)
downloadnixpkgs-a669f2a0e447db236e22ac19244ed03c276d0a42.tar
nixpkgs-a669f2a0e447db236e22ac19244ed03c276d0a42.tar.gz
nixpkgs-a669f2a0e447db236e22ac19244ed03c276d0a42.tar.bz2
nixpkgs-a669f2a0e447db236e22ac19244ed03c276d0a42.tar.lz
nixpkgs-a669f2a0e447db236e22ac19244ed03c276d0a42.tar.xz
nixpkgs-a669f2a0e447db236e22ac19244ed03c276d0a42.tar.zst
nixpkgs-a669f2a0e447db236e22ac19244ed03c276d0a42.zip
earthly: init at 0.5.11
Update pkgs/top-level/all-packages.nix; Added earthly

Do check tests

created personal handle in maintainers/maintainer-list.nix

preppended "debugger" and "shellrepeater" binaries with earthly-* to avoid collisions

fixed earthly package maintainer name
Diffstat (limited to 'pkgs/development/tools/earthly/default.nix')
-rw-r--r--pkgs/development/tools/earthly/default.nix28
1 files changed, 28 insertions, 0 deletions
diff --git a/pkgs/development/tools/earthly/default.nix b/pkgs/development/tools/earthly/default.nix
new file mode 100644
index 00000000000..58ca9107c54
--- /dev/null
+++ b/pkgs/development/tools/earthly/default.nix
@@ -0,0 +1,28 @@
+{ lib, buildGoModule, fetchFromGitHub }:
+
+buildGoModule rec {
+  pname = "earthly";
+  version = "0.5.11";
+
+  src = fetchFromGitHub {
+    owner = "earthly";
+    repo = "earthly";
+    rev = "v${version}";
+    sha256 = "1d9p2f79f2k7nnka9qja3dlqvvl240l09frkb17ff2f5kyi1qabv";
+  };
+
+  vendorSha256 = "1wfm55idlxf6cbm6b5z3fip0j94nwr7m0zxx6a2nsr03d4x0ad0k";
+
+  postInstall = ''
+    mv $out/bin/debugger $out/bin/earthly-debugger
+    mv $out/bin/shellrepeater $out/bin/earthly-shellrepeater
+  '';
+
+  meta = with lib; {
+    description = "Build automation for the container era";
+    homepage = "https://earthly.dev/";
+    changelog = "https://github.com/earthly/earthly/releases/tag/v${version}";
+    license = licenses.mpl20;
+    maintainers = with maintainers; [ mdsp ];
+  };
+}