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
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
33 changes: 33 additions & 0 deletions pkgs/by-name/ni/nix-editor/package.nix
hsjobeki marked this conversation as resolved.
Show resolved Hide resolved
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
{
lib,
stdenv,
fetchFromGitHub,
rustPlatform,
darwin,
}:

rustPlatform.buildRustPackage {
pname = "nix-editor";
version = "0.3.0-unstable-2023-12-20";

src = fetchFromGitHub {
owner = "snowfallorg";
repo = "nix-editor";
rev = "b5017f8d61753ce6a3a1a2aa7e474d59146a8ae3";
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.


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 ];


meta = with lib; {
eclairevoyant marked this conversation as resolved.
Show resolved Hide resolved
description = "CLI program to modify NixOS configuration files";
mainProgram = "nix-editor";
homepage = "https://github.com/snowfallorg/nix-editor";
license = [ licenses.mit ];
maintainers = with maintainers; [
hsjobeki
];
};
}