Merge pull request #169146 from evanjs/didyoumean/init

didyoumean: init at 1.1.0
This commit is contained in:
Anderson Torres 2022-04-22 00:06:19 -03:00 committed by GitHub
commit 6d15169ea6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 36 additions and 0 deletions

View File

@ -0,0 +1,32 @@
{ lib
, stdenv
, rustPlatform
, fetchFromGitHub
, libxcb
# Darwin dependencies
, AppKit
}:
rustPlatform.buildRustPackage rec {
pname = "didyoumean";
version = "1.1.0";
src = fetchFromGitHub {
owner = "hisbaan";
repo = "didyoumean";
rev = "v${version}";
sha256 = "sha256-t2bmvz05vWIxQhC474q/9uky1kAQoFN8Z+qflw5Vj68=";
};
cargoSha256 = "sha256-4DbziI9enib4pm9/P4WEu15glIxtejaV2GCqbzuxxyw=";
buildInputs = lib.optional stdenv.isLinux [ libxcb ]
++ lib.optionals stdenv.isDarwin [ AppKit ];
meta = with lib; {
description = "A CLI spelling corrector for when you're unsure";
homepage = "https://github.com/hisbaan/didyoumean";
license = licenses.gpl3Plus;
maintainers = with maintainers; [ evanjs ];
};
}

View File

@ -433,6 +433,10 @@ with pkgs;
devour = callPackage ../tools/X11/devour {};
didyoumean = callPackage ../tools/misc/didyoumean {
inherit (darwin.apple_sdk.frameworks) AppKit;
};
diffPlugins = (callPackage ../build-support/plugins.nix {}).diffPlugins;
dieHook = makeSetupHook {} ../build-support/setup-hooks/die.sh;