sd: use new Darwin SDK pattern (#367254)

This commit is contained in:
Nick Cao
2024-12-22 09:32:05 -05:00
committed by GitHub
2 changed files with 3 additions and 11 deletions
@@ -1,10 +1,8 @@
{
lib,
stdenv,
fetchFromGitHub,
rustPlatform,
installShellFiles,
Security,
}:
rustPlatform.buildRustPackage rec {
@@ -22,8 +20,6 @@ rustPlatform.buildRustPackage rec {
nativeBuildInputs = [ installShellFiles ];
buildInputs = lib.optionals stdenv.hostPlatform.isDarwin [ Security ];
postInstall = ''
installManPage gen/sd.1
@@ -31,12 +27,12 @@ rustPlatform.buildRustPackage rec {
installShellCompletion --zsh gen/completions/_sd
'';
meta = with lib; {
meta = {
description = "Intuitive find & replace CLI (sed alternative)";
mainProgram = "sd";
homepage = "https://github.com/chmln/sd";
license = licenses.mit;
maintainers = with maintainers; [
license = lib.licenses.mit;
maintainers = with lib.maintainers; [
amar1729
Br1ght0ne
];
-4
View File
@@ -5112,10 +5112,6 @@ with pkgs;
scfbuild = python3.pkgs.callPackage ../tools/misc/scfbuild { };
sd = callPackage ../tools/text/sd {
inherit (darwin.apple_sdk.frameworks) Security;
};
securefs = darwin.apple_sdk_11_0.callPackage ../tools/filesystems/securefs { };
segger-jlink-headless = callPackage ../by-name/se/segger-jlink/package.nix { headless = true; };