From bf0ed5e93a3362a7bd77f6ca1321ed865e5a43aa Mon Sep 17 00:00:00 2001 From: Joachim Schiele Date: Sun, 6 Dec 2015 19:43:25 +0100 Subject: [PATCH] added kgocode --- pkgs/applications/misc/kgocode/default.nix | 21 +++++++++++++++++++++ pkgs/top-level/all-packages.nix | 4 ++++ 2 files changed, 25 insertions(+) create mode 100644 pkgs/applications/misc/kgocode/default.nix diff --git a/pkgs/applications/misc/kgocode/default.nix b/pkgs/applications/misc/kgocode/default.nix new file mode 100644 index 000000000000..5e72b02045c7 --- /dev/null +++ b/pkgs/applications/misc/kgocode/default.nix @@ -0,0 +1,21 @@ +{ fetchgit, stdenv, cmake, kdelibs } : + +stdenv.mkDerivation rec { + name = "kgocode-0.0.1"; + + buildInputs = [ cmake kdelibs ]; + + src = fetchgit { + url = https://bitbucket.org/lucashnegri/kgocode.git; + rev = "024536e4b2f371db4f51c1d80fb6b444352ff6a6"; + sha256 = "1cjxcy4w46rbx90jrikklh9vw7nz641gq7xlvrq3pjsszxn537gq"; + }; + + meta = with stdenv.lib; { + description = "a plugin for KTextEditor (Kate, KDevelop, among others) that provides basic code completion for the Go programming language. Uses gocode as completion provider"; + homepage = https://bitbucket.org/lucashnegri/kgocode/overview; + maintainers = with maintainers; [ qknight ]; + license = licenses.gpl3Plus; + platforms = platforms.linux; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index a6f70b0ae333..2943469147c4 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -10296,6 +10296,10 @@ let gocode = goPackages.gocode.bin // { outputs = [ "bin" ]; }; + kgocode = callPackage ../applications/misc/kgocode { + inherit (pkgs.kde4) kdelibs; + }; + gotags = goPackages.gotags.bin // { outputs = [ "bin" ]; }; golint = goPackages.lint.bin // { outputs = [ "bin" ]; };