Skip to content
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

ucm 0.5.34 #116

Merged
merged 2 commits into from
Feb 19, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 7 additions & 14 deletions nix/ucm.nix
Original file line number Diff line number Diff line change
Expand Up @@ -42,22 +42,22 @@
system,
zlib,
}: let
version = "0.5.33";
version = "0.5.34";

# sha256 can be calculated with `nix-prefetch-url <url>`. For example:
# nix-prefetch-url https://github.com/unisonweb/unison/releases/download/release/0.5.29/ucm-linux-x64.tar.gz
# hash can be calculated with `nix store prefetch-file <url>`. For example:
# nix store prefetch-file https://github.com/unisonweb/unison/releases/download/release/0.5.34/ucm-linux-x64.tar.gz
srcForPlatform = {
aarch64-darwin = {
sys = "macos-arm64";
sha256 = "17lgjl08fd9s418wi2nsih7q1whm089g061v3i942439zlr90yhd";
hash = "sha256-WbnhcGE5P3i8tm6+YqHM1JUcbV12JIWsbcmCSK/vCzw=";
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎉

};
x86_64-darwin = {
sys = "macos-x64";
sha256 = "05l277lqf7mj69a087qfl6f4ik05xnyvhdpkhh147pgcx29dpwbx";
hash = "sha256-MFWZ4eGDG5GRo+WfA25QVtAvpIRU2sy2sEgjF1hfFUs=";
};
x86_64-linux = {
sys = "linux-x64";
sha256 = "0fg491l6cjpkjnv0cax43qnbaghsrlfzsyn9dfqwqgzpgr16wh7s";
hash = "sha256-fCyspQIP/2+VhHKGiDpq1qnw696fGLqUKBqAoYaQgIY=";
};
};

Expand All @@ -66,7 +66,7 @@
in
fetchurl {
url = "https://github.com/unisonweb/unison/releases/download/release/${version}/ucm-${srcArgs.sys}.tar.gz";
inherit (srcArgs) sha256;
inherit (srcArgs) hash;
};

unison = "$out/unison/unison";
Expand Down Expand Up @@ -111,13 +111,6 @@ in
runHook postInstall
'';

postInstall = ''
installShellCompletion --cmd ucm \
--bash <(${unison} --bash-completion-script ${unison}) \
--fish <(${unison} --fish-completion-script ${unison}) \
--zsh <(${unison} --zsh-completion-script ${unison})
'';

installCheckPhase = ''
export XDG_DATA_HOME="$TMP/.local/share"
echo "ucm version:"
Expand Down