diff --git a/pkgs/tools/misc/fzf/default.nix b/pkgs/tools/misc/fzf/default.nix new file mode 100644 index 00000000000..5692fc25a32 --- /dev/null +++ b/pkgs/tools/misc/fzf/default.nix @@ -0,0 +1,33 @@ +{ stdenv, fetchFromGitHub, goPackages, syncthing, ncurses }: + +with goPackages; + +buildGoPackage rec { + name = "fzf-${version}"; + version = "0.10.0"; + goPackagePath = "github.com/junegunn/fzf"; + src = fetchFromGitHub { + owner = "junegunn"; + repo = "fzf"; + rev = "${version}"; + sha256 = "0dx9qwmcrnh31m2n75qmpj1dxm6rr6xsbazy4nwa3bzrb8y6svh2"; + }; + + 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; + maintainers = [ maintainers.magnetophon ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 5bede7f8ce1..19582ffe991 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -882,6 +882,8 @@ let filter_audio = callPackage ../development/libraries/filter_audio { }; + fzf = callPackage ../tools/misc/fzf { }; + gist = callPackage ../tools/text/gist { }; gmic = callPackage ../tools/graphics/gmic { }; diff --git a/pkgs/top-level/go-packages.nix b/pkgs/top-level/go-packages.nix index b20443674c0..cf9971c7407 100644 --- a/pkgs/top-level/go-packages.nix +++ b/pkgs/top-level/go-packages.nix @@ -1369,6 +1369,30 @@ let }; }; + junegunn.go-runewidth = buildGoPackage rec { + rev = "travisish"; + name = "go-runewidth-${rev}"; + goPackagePath = "github.com/junegunn/go-runewidth"; + src = fetchFromGitHub { + inherit rev; + owner = "junegunn"; + repo = "go-runewidth"; + sha256 = "07d612val59sibqly5d6znfkp4h4gjd77783jxvmiq6h2fwb964k"; + }; + }; + + go-shellwords = buildGoPackage rec { + rev = "35d512af75e283aae4ca1fc3d44b159ed66189a4"; + name = "go-shellwords-${rev}"; + goPackagePath = "github.com/junegunn/go-shellwords"; + src = fetchFromGitHub { + inherit rev; + owner = "junegunn"; + repo = "go-shellwords"; + sha256 = "c792abe5fda48d0dfbdc32a84edb86d884a0ccbd9ed49ad48a30cda5ba028a22"; + }; + }; + go-runit = buildGoPackage rec { rev = "a9148323a615e2e1c93b7a9893914a360b4945c8"; name = "go-runit-${stdenv.lib.strings.substring 0 7 rev}";