sd: use new Darwin SDK pattern (#367254)
This commit is contained in:
@@ -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
|
||||
];
|
||||
@@ -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; };
|
||||
|
||||
Reference in New Issue
Block a user