diff --git a/pkgs/tools/misc/fzf/default.nix b/pkgs/tools/misc/fzf/default.nix new file mode 100644 index 000000000000..58c2871ae85c --- /dev/null +++ b/pkgs/tools/misc/fzf/default.nix @@ -0,0 +1,23 @@ +{ stdenv, fetchFromGitHub, goPackages, syncthing, ncurses }: + +with goPackages; + +buildGoPackage rec { + name = "fzf-${version}"; + version = "0.9.13"; + goPackagePath = "github.com/junegunn/fzf"; + src = fetchFromGitHub { + owner = "junegunn"; + repo = "fzf"; + rev = "${version}"; + sha256 = "1m9zbf02d6i47c33jys9lr0krqfjk2dr8jzpfhnrb266qcdb27xi"; + }; + + buildInputs = with goPackages; [ crypto ginkgo gomega junegunn.go-runewidth go-shellwords ncurses syncthing text ]; + + meta = with stdenv.lib; { + homepage = https://github.com/junegunn/fzf; + description = "A command-line fuzzy finder written in Go"; + license = licenses.mit; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index e6ad36078546..2b9e6d6610ab 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -878,6 +878,8 @@ let filter_audio = callPackage ../development/libraries/filter_audio { }; + fzf = callPackage ../tools/misc/fzf { }; + gist = callPackage ../tools/text/gist { }; mcrl = callPackage ../tools/misc/mcrl { };