Repository navigation
Conversation
|
sorry i didn't get to this. wanted to know, now that this is rust, if you have a suggestion on how to make it more easily available to nix users? i could put it on cargo or whatever if that's useful. |
|
@schpet I think it's even easier to handle if it's on Rust compared to TS, and thanks for porting! You can put it on Cargo, too, and Nix users can package it themselves in their downstream configurations, but having an upstream flake is preferred, provided you as the maintainer are comfortable with that. |
|
sure! yeah i just want to do whatever is normal for nix users. so if cargo is not needed i will not bother and just keep it in the repo. thanks for offering to help! i will spin up a nix vm at some point to try and understand it too. |
Package the binary with rustPlatform.buildRustPackage and read Cargo.lock directly, so version and dependency bumps need no hash refreshes. Tests stay off in the sandbox because a few keyring tests hardcode /bin/cat, /bin/sleep and /bin/kill.
|
Rebased onto the Rust rewrite. It's a plain |
Summary
flake.nix+flake.lockfor Nix userslinearfrom source withrustPlatform.buildRustPackage, readingCargo.lockdirectlyNotes
doCheck = falsebecause a few keyring tests hardcode/bin/cat,/bin/sleepand/bin/kill, which do not exist in the Nix sandboxnix build .#linearand./result/bin/linear --version