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
chars: init at 0.5.0 #103363
chars: init at 0.5.0 #103363
Conversation
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.
1 nit, otherwise LGTM 👍
uh. TIL. Thanks and done! |
This pull request has been mentioned on NixOS Discourse. There might be relevant details there: |
Co-authored-by: Ivar <41924494+IvarWithoutBones@users.noreply.github.com> Co-authored-by: Sandro Jäckel <sandro.jaeckel@gmail.com>
diff --git a/pkgs/tools/text/chars/default.nix b/pkgs/tools/text/chars/default.nix
index 18b29066ac56..fa58d110550e 100644
--- a/pkgs/tools/text/chars/default.nix
+++ b/pkgs/tools/text/chars/default.nix
@@ -1,6 +1,7 @@
-{ lib
+{ stdenv
, fetchFromGitHub
, rustPlatform
+, Security
}:
rustPlatform.buildRustPackage rec {
@@ -16,7 +17,9 @@ rustPlatform.buildRustPackage rec {
cargoSha256 = "1ampmw0l2wk2xp4q13aj5shxncqfh4dc3rsmpk2scaivanrsikn5";
- meta = with lib; {
+ buildInputs = stdenv.lib.optionals stdenv.isDarwin [ Security ];
+
+ meta = with stdenv.lib; {
description = "Commandline tool to display information about unicode characters";
homepage = "https://github.com/antifuchs/chars";
license = licenses.mit;
diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix
index 7a00e1ec5bf4..6d58e2a81455 100644
--- a/pkgs/top-level/all-packages.nix
+++ b/pkgs/top-level/all-packages.nix
@@ -961,7 +961,9 @@ in
charm = callPackage ../applications/misc/charm { };
- chars = callPackage ../tools/text/chars { };
+ chars = callPackage ../tools/text/chars {
+ inherit (darwin.apple_sdk.frameworks) Security;
+ };
ec2_api_tools = callPackage ../tools/virtualization/ec2-api-tools { };
Fixes building on darwin. |
Result of 1 package built:
|
Thanks @SuperSandro2000 ! |
Result of 1 package built:
|
Motivation for this change
Things done
sandbox
innix.conf
on non-NixOS linux)nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
./result/bin/
)nix path-info -S
before and after)