From 60646c10d51569992f7b37f1d1cbc1ecaf71b4d8 Mon Sep 17 00:00:00 2001 From: mingchuan Date: Mon, 5 Mar 2018 19:51:44 +0800 Subject: [PATCH] powerline-go: init at 1.8.2 --- pkgs/tools/misc/powerline-go/default.nix | 26 +++++++++++++ pkgs/tools/misc/powerline-go/deps.nix | 48 ++++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 + 3 files changed, 76 insertions(+) create mode 100644 pkgs/tools/misc/powerline-go/default.nix create mode 100644 pkgs/tools/misc/powerline-go/deps.nix diff --git a/pkgs/tools/misc/powerline-go/default.nix b/pkgs/tools/misc/powerline-go/default.nix new file mode 100644 index 000000000000..4e465e7ea1ca --- /dev/null +++ b/pkgs/tools/misc/powerline-go/default.nix @@ -0,0 +1,26 @@ +{ stdenv, buildGoPackage, fetchFromGitHub }: + +buildGoPackage rec { + pname = "powerline-go"; + version = "1.8.2"; + name = "${pname}-${version}"; + rev = "v${version}"; + + goPackagePath = "github.com/justjanne/powerline-go"; + + src = fetchFromGitHub { + owner = "justjanne"; + repo = pname; + inherit rev; + sha256 = "1q45hxbrnx0mgi7z1rqkxp47dk8yf4mzy62i0027fhr65aifq6xj"; + }; + + goDeps = ./deps.nix; + + meta = with stdenv.lib; { + description = "A Powerline like prompt for Bash, ZSH and Fish"; + license = licenses.gpl3; + platforms = platforms.unix; + maintainers = with maintainers; [ sifmelcara ]; + }; +} diff --git a/pkgs/tools/misc/powerline-go/deps.nix b/pkgs/tools/misc/powerline-go/deps.nix new file mode 100644 index 000000000000..a3276ab229bb --- /dev/null +++ b/pkgs/tools/misc/powerline-go/deps.nix @@ -0,0 +1,48 @@ +# This file was generated by https://github.com/kamilchm/go2nix v1.2.1 +[ + { + goPackagePath = "github.com/mattn/go-runewidth"; + fetch = { + type = "git"; + url = "https://github.com/mattn/go-runewidth"; + rev = "a9d6d1e4dc51df2130326793d49971f238839169"; + sha256 = "1x6x5r6ijik5ardfrpncjbqvpv8j5m7yb94svzz83a15ln44ajmg"; + }; + } + { + goPackagePath = "golang.org/x/crypto"; + fetch = { + type = "git"; + url = "https://go.googlesource.com/crypto"; + rev = "91a49db82a88618983a78a06c1cbd4e00ab749ab"; + sha256 = "1xb4vlshx76xany4w60dkpz67plyfk7nr97pinf1bbha32pi36jc"; + }; + } + { + goPackagePath = "golang.org/x/sys"; + fetch = { + type = "git"; + url = "https://go.googlesource.com/sys"; + rev = "dd2ff4accc098aceecb86b36eaa7829b2a17b1c9"; + sha256 = "086j1kk56vm1m5m9sf3lcww9phqw6p2q3g0is1jn4ixfxd3wm2wg"; + }; + } + { + goPackagePath = "golang.org/x/text"; + fetch = { + type = "git"; + url = "https://go.googlesource.com/text"; + rev = "b7ef84aaf62aa3e70962625c80a571ae7c17cb40"; + sha256 = "0xfb515f3bmcq15sq1cm641qwgsmq1w5xjdx2mhwgns770jngndd"; + }; + } + { + goPackagePath = "gopkg.in/yaml.v2"; + fetch = { + type = "git"; + url = "https://gopkg.in/yaml.v2"; + rev = "7f97868eec74b32b0982dd158a51a446d1da7eb5"; + sha256 = "0a31jd1p00b9c82f3sfsbv2bdh7mlfy9vhcqxipll2cyvxplgfq8"; + }; + } +] diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 0cdc926595e2..1d19dc380a54 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -14242,6 +14242,8 @@ with pkgs; powerline-fonts = callPackage ../data/fonts/powerline-fonts { }; + powerline-go = callPackage ../tools/misc/powerline-go { }; + profont = callPackage ../data/fonts/profont { }; proggyfonts = callPackage ../data/fonts/proggyfonts { };