-
Notifications
You must be signed in to change notification settings - Fork 0
feat: package moshi-hook as Nix overlay #2147
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
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 |
|---|---|---|
|
|
@@ -150,6 +150,7 @@ with pkgs; | |
| claude-code | ||
| cmake | ||
| codex | ||
| moshi-hook | ||
|
Contributor
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. Nit — alphabetical ordering: this Linux block is sorted alphabetically (atop, below, binutils, blueman, bubblewrap, claude-code, cmake, codex, collectd, fwupd, gcc, gemini-cli, glib, keychain, libiconv, libsecret, opencode, ...). |
||
| collectd | ||
| fwupd | ||
| gcc | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -73,6 +73,33 @@ | |
| } | ||
| ) | ||
| inputs.noctalia-shell.overlays.default | ||
| (_: prev: { | ||
| moshi-hook = prev.stdenv.mkDerivation rec { | ||
| pname = "moshi-hook"; | ||
| version = "0.2.69"; | ||
| src = prev.fetchurl { | ||
| url = "https://cdn.getmoshi.app/hook/v${version}/moshi-hook_${ | ||
| if prev.stdenv.isDarwin then "Darwin" else "Linux" | ||
| }_${if prev.stdenv.hostPlatform.isAarch64 then "arm64" else "x86_64"}.tar.gz"; | ||
| sha256 = | ||
| if prev.stdenv.isLinux && prev.stdenv.hostPlatform.isx86_64 then | ||
| "3903e2e5d1dba02f9e1f53df8cea6e2b3260e1581461b9a07ca65f18814b8b08" | ||
| else if prev.stdenv.isLinux && prev.stdenv.hostPlatform.isAarch64 then | ||
| "0a30e081399543551bbd0ba3320f3b28be814a585e5c591e168f8fd6d9565f07" | ||
| else if prev.stdenv.isDarwin && prev.stdenv.hostPlatform.isAarch64 then | ||
| "52258126b675dad210a8f04b83d8e90b359951af37474ff985d2c3f49102d981" | ||
| else | ||
| "7cf24d316bafffc59d30e05d6ad6b27d4c03c9953ce901056f57f03c25e4b83b"; | ||
| }; | ||
| sourceRoot = "."; | ||
| dontConfigure = true; | ||
| dontBuild = true; | ||
|
Comment on lines
+95
to
+96
Contributor
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. For prebuilt binaries (especially Go binaries or binaries running on macOS), stripping them can corrupt the executable or invalidate ad-hoc code signatures (leading to |
||
| installPhase = '' | ||
| install -Dm755 moshi-hook $out/bin/moshi-hook | ||
| ln -s moshi-hook $out/bin/moshi | ||
|
Contributor
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. Nit — the |
||
| ''; | ||
| }; | ||
| }) | ||
| (final: prev: { | ||
| nightlyPkgs = import inputs.nixpkgs-nightly { | ||
| inherit (prev) system config; | ||
|
|
||
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.
The package list under
lib.optionals stdenv.isLinuxis sorted alphabetically.moshi-hookshould be moved to its correct alphabetical position, which is betweenlibsecretandopencode.