diff --git a/pkgs/shells/carapace/default.nix b/pkgs/shells/carapace/default.nix new file mode 100644 index 000000000000..f85937576dea --- /dev/null +++ b/pkgs/shells/carapace/default.nix @@ -0,0 +1,31 @@ +{ lib, buildGo117Module, fetchFromGitHub }: + +buildGo117Module rec { + pname = "carapace"; + version = "0.8.10"; + + src = fetchFromGitHub { + owner = "rsteube"; + repo = "${pname}-bin"; + rev = "v${version}"; + sha256 = "0j60fvrmjm4440gj9hib2ar386zxcblw7yifigsnchr7p3i2187n"; + }; + + vendorSha256 = "1s1sws79cyz1rl63wayzf7yhb04x29a4a1mkifqnl4cc2pv806jf"; + + subPackages = [ "./cmd/carapace" ]; + + tags = [ "release" ]; + + preBuild = '' + go generate ./... + ''; + + meta = with lib; { + description = "Multi-shell multi-command argument completer"; + homepage = "https://rsteube.github.io/carapace-bin/"; + maintainers = with maintainers; [ mredaelli ]; + license = licenses.mit; + platforms = platforms.unix; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 2c82c18a5d91..58ef323de73d 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -12757,6 +12757,8 @@ with pkgs; undistract-me = callPackage ../shells/bash/undistract-me { }; + carapace = callPackage ../shells/carapace { }; + dash = callPackage ../shells/dash { }; dasht = callPackage ../tools/misc/dasht { };