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

nix-editor: init at 0.3.0 #340033

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

hsjobeki
Copy link
Contributor

@hsjobeki hsjobeki commented Sep 6, 2024

Description of changes

A simple rnix-ast based programm to modify NixOS configuration files.
It allows to edit atomic nix values while preserving the overall structure such as formatting and comments.

It has some known bugs but generally works really nice.

Things done

  • Built on platform(s)
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)
    • sandbox = relaxed
    • sandbox = true
  • Tested, as applicable:
  • Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
  • Tested basic functionality of all binary files (usually in ./result/bin/)
  • 24.11 Release Notes (or backporting 23.11 and 24.05 Release notes)
    • (Package updates) Added a release notes entry if the change is major or breaking
    • (Module updates) Added a release notes entry if the change is significant
    • (Module addition) Added a release notes entry if adding a new NixOS module
  • Fits CONTRIBUTING.md.

Add a 👍 reaction to pull requests you find important.

Copy link
Contributor

@eclairevoyant eclairevoyant left a comment

Choose a reason for hiding this comment

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

Some feedback below. Also isn't rnix dead?

pkgs/by-name/ni/nix-editor/package.nix Outdated Show resolved Hide resolved
pkgs/by-name/ni/nix-editor/package.nix Show resolved Hide resolved
pkgs/by-name/ni/nix-editor/package.nix Outdated Show resolved Hide resolved
pkgs/by-name/ni/nix-editor/package.nix Outdated Show resolved Hide resolved
pkgs/by-name/ni/nix-editor/package.nix Show resolved Hide resolved
pkgs/by-name/ni/nix-editor/package.nix Outdated Show resolved Hide resolved
@hsjobeki
Copy link
Contributor Author

hsjobeki commented Sep 6, 2024

Some feedback below. Also isn't rnix dead?

Thanks for the review.

Fiy: No rnix is not dead. It is a pretty good quality rust library. That is used in a lot of tools we use in nixpkgs.

Copy link
Contributor

@eclairevoyant eclairevoyant left a comment

Choose a reason for hiding this comment

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

Fiy: No rnix is not dead.

I asked because of no activity in 2+ years, but alright. In any case
seems like there's a hash mismatch here when I build locally

hash = "sha256-Ne9NG7x45a8aJyAN+yYWbr/6mQHBVVkwZZ72EZHHRqw=";
};

cargoHash = "sha256-ZWSLW+mFT+Qls2GeVPamispL8ObieXT4tDc1Go5cjL4=";
Copy link
Contributor

@eclairevoyant eclairevoyant Sep 7, 2024

Choose a reason for hiding this comment

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

Suggested change
cargoHash = "sha256-ZWSLW+mFT+Qls2GeVPamispL8ObieXT4tDc1Go5cjL4=";
cargoHash = "sha256-1OErQ+bKKInz7pQQCKW82BGODzbD9EFImBnwbiojJgk=";

Copy link
Contributor

Choose a reason for hiding this comment

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

Or I wonder is this #308089 rearing its head?

Copy link
Member

Choose a reason for hiding this comment

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

No, I get the same hash mismatch on Linux.


cargoHash = "sha256-ZWSLW+mFT+Qls2GeVPamispL8ObieXT4tDc1Go5cjL4=";

buildInputs = lib.optionals stdenv.isDarwin [ darwin.Security ];
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
buildInputs = lib.optionals stdenv.isDarwin [ darwin.Security ];
buildInputs = lib.optionals stdenv.hostPlatform.isDarwin [ darwin.Security ];

hash = "sha256-Ne9NG7x45a8aJyAN+yYWbr/6mQHBVVkwZZ72EZHHRqw=";
};

cargoHash = "sha256-ZWSLW+mFT+Qls2GeVPamispL8ObieXT4tDc1Go5cjL4=";
Copy link
Member

Choose a reason for hiding this comment

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

No, I get the same hash mismatch on Linux.

@FliegendeWurst FliegendeWurst added the awaiting_changes (old Marvin label, do not use) label Nov 24, 2024
@SigmaSquadron SigmaSquadron removed the awaiting_changes (old Marvin label, do not use) label Jan 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants