-
-
Notifications
You must be signed in to change notification settings - Fork 16.6k
cursor-cli: init at 0-unstable-2025-08-09 #432035
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
base: master
Are you sure you want to change the base?
Conversation
Nice! I was looking into packaging this myself. I think we maybe able to swap out its bundled node for |
|
|
Hashes look now look good, but the
|
I think we should call it "cursor-cli". |
I also kinda agree with @aaronjheng, I think it should be called Kinda sucks that they have like 2 different names that they mix around 😅 Also @sudosubin can I raise a PR on your repo to add myself as a maintainer for this package ? |
Yes, that's correct. The public name of the package should be |
@AndrewBastin Of course! You're always welcome. |
|
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.
I am concerned that we are normalising packaging beta-quality leaf software in Nixpkgs. Unless there's a really good reason why this should be urgently packaged, (i.e. it's one of those upstreams that will never declare their software stable) we should wait until the developers state their software is considered ready for general consumption.
Please squash the commits. We don't use |
4e02dc1
to
6fd196d
Compare
Tested out 6fd196d and it works for me, thanks for packaging! |
Co-authored-by: Andrew Bastin <andrewbastin.k@gmail.com>
6fd196d
to
1f0214d
Compare
Tested 1f0214d and working on linux 64 bit. There is a new update that was released yesterday though |
version="0-unstable-$timestamp" | ||
else | ||
version="$release" | ||
fi | ||
|
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.
version="0-unstable-$timestamp" | |
else | |
version="$release" | |
fi | |
latestVersion="0-unstable-$timestamp" | |
else | |
latestVersion="$release" | |
fi | |
currentVersion=$(nix eval --raw -f . cursor-cli.version) | |
echo "latest version: $latestVersion" | |
echo "current version: $currentVersion" | |
if [[ "$latestVersion" == "$currentVersion" ]]; then | |
echo "package is up-to-date" | |
exit 0 | |
fi |
should check if updates are needed first before pre-fetching
source=$(nix-prefetch-url "$url" --name "cursor-cli-$version") | ||
hash=$(nix-hash --to-sri --type sha256 "$source") | ||
update-source-version cursor-cli "$version" "$hash" "$url" --system="$platform" --source-key="sources.$platform" |
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.
source=$(nix-prefetch-url "$url" --name "cursor-cli-$version") | |
hash=$(nix-hash --to-sri --type sha256 "$source") | |
update-source-version cursor-cli "$version" "$hash" "$url" --system="$platform" --source-key="sources.$platform" | |
source=$(nix-prefetch-url "$url" --name "cursor-cli-$latestVersion") | |
hash=$(nix-hash --to-sri --type sha256 "$source") | |
update-source-version cursor-cli "$latestVersion" "$hash" "$url" --system="$platform" --source-key="sources.$platform" --ignore-same-version |
you need --ignore-same-version
, otherwise only the first platform gets updated
Added
cursor-cli
, which is currently beta stage.Things done
passthru.tests
.nixpkgs-review
on this PR. See nixpkgs-review usage../result/bin/
.Add a 👍 reaction to pull requests you find important.