From 72c5514202d1b4ed9a25bda67c5af1fd91560d85 Mon Sep 17 00:00:00 2001 From: Bart Brouns Date: Mon, 11 Dec 2017 16:24:40 +0100 Subject: [PATCH] blsd: init at 2017-07-27 --- pkgs/tools/misc/blsd/default.nix | 27 +++++++++++++++++++++++++++ pkgs/tools/misc/blsd/deps.nix | 11 +++++++++++ pkgs/top-level/all-packages.nix | 4 ++++ 3 files changed, 42 insertions(+) create mode 100644 pkgs/tools/misc/blsd/default.nix create mode 100644 pkgs/tools/misc/blsd/deps.nix diff --git a/pkgs/tools/misc/blsd/default.nix b/pkgs/tools/misc/blsd/default.nix new file mode 100644 index 000000000000..c44967d36204 --- /dev/null +++ b/pkgs/tools/misc/blsd/default.nix @@ -0,0 +1,27 @@ +{ stdenv, buildGoPackage, fetchFromGitHub, pkgconfig, libgit2 }: + +buildGoPackage rec { + name = "blsd-${version}"; + version = "2017-07-27"; + + goPackagePath = "github.com/junegunn/blsd"; + + src = fetchFromGitHub { + owner = "junegunn"; + repo = "blsd"; + rev = "a2ac619821e502452abdeae9ebab45026893b9e8"; + sha256 = "0b0q6i4i28cjqgxqmwxbps22gp9rcd3jz562q5wvxrwlpbzlls2h"; + }; + + goDeps = ./deps.nix; + + nativeBuildInputs = [ pkgconfig libgit2 ]; + + meta = with stdenv.lib; { + homepage = https://github.com/junegunn/blsd; + description = "List directories in breadth-first order"; + license = licenses.mit; + maintainers = [ maintainers.magnetophon ]; + platforms = platforms.unix; + }; +} diff --git a/pkgs/tools/misc/blsd/deps.nix b/pkgs/tools/misc/blsd/deps.nix new file mode 100644 index 000000000000..55e6daea5e21 --- /dev/null +++ b/pkgs/tools/misc/blsd/deps.nix @@ -0,0 +1,11 @@ +[ +{ + goPackagePath = "github.com/libgit2/git2go"; + fetch = { + type = "git"; + url = "https://github.com/libgit2/git2go"; + rev = "334260d743d713a55ff3c097ec6707f2bb39e9d5"; + sha256 = "0hfya9z2pg29zbc0s92hj241rnbk7d90jzj34q0dp8b7akz6r1rc"; + }; +} +] diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 2b50df01211d..a277ea2c2626 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -763,6 +763,10 @@ with pkgs; blockdiag = pythonPackages.blockdiag; + blsd = callPackage ../tools/misc/blsd { + libgit2 = libgit2_0_25; + }; + bluez-tools = callPackage ../tools/bluetooth/bluez-tools { }; bmon = callPackage ../tools/misc/bmon { };