about summary refs log tree commit diff
path: root/pkgs
diff options
context:
space:
mode:
authorAlexey Lebedeff <alebedev@mirantis.com>2016-05-18 19:23:15 +0300
committerAlexey Lebedeff <alebedev@mirantis.com>2016-05-18 19:24:10 +0300
commita4ecc91d398300a401c0252fc0bc39282fe10c58 (patch)
tree661007c3e06cb7b672d529f88f9d791ba1bf2eff /pkgs
parentc444c402af5c0faf49d5e328de4fcacf17e08ba2 (diff)
platinum-searcher: init at 2.1.1
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/tools/text/platinum-searcher/default.nix70
-rw-r--r--pkgs/top-level/all-packages.nix2
2 files changed, 72 insertions, 0 deletions
diff --git a/pkgs/tools/text/platinum-searcher/default.nix b/pkgs/tools/text/platinum-searcher/default.nix
new file mode 100644
index 0000000000000..ca4ac0b8a9a54
--- /dev/null
+++ b/pkgs/tools/text/platinum-searcher/default.nix
@@ -0,0 +1,70 @@
+{ stdenv, lib, go, goPackages, fetchFromGitHub }:
+
+with goPackages;
+
+buildGoPackage rec {
+  name = "the_platinum_searcher-${version}";
+  version = "2.1.1";
+  rev = "v2.1.1";
+
+  buildInputs = [ go go-flags ansicolor text toml yaml-v2 ];
+
+  goPackagePath = "github.com/monochromegane/the_platinum_searcher";
+
+  src = fetchFromGitHub {
+    inherit rev;
+    owner = "monochromegane";
+    repo = "the_platinum_searcher";
+    sha256 = "06cs936w3l64ikszcysdm9ijn52kwgi1ffjxkricxbdb677gsk23";
+  };
+
+  extraSrcs = [
+    {
+      goPackagePath = "github.com/monochromegane/conflag";
+
+      src = fetchFromGitHub {
+        owner = "monochromegane";
+        repo = "conflag";
+        rev = "6d68c9aa4183844ddc1655481798fe4d90d483e9";
+        sha256 = "0csfr5c8d3kbna9sqhzfp2z06wq6mc6ijja1zj2i82kzsq8534wa";
+      };
+    }
+    {
+      goPackagePath = "github.com/monochromegane/go-gitignore";
+
+      src = fetchFromGitHub {
+        owner = "monochromegane";
+        repo = "go-gitignore";
+        rev = "38717d0a108ca0e5af632cd6845ca77d45b50729";
+        sha256 = "0r1inabpgg6sn6i47b02hcmd2p4dc1ab1mcy20mn1b2k3mpdj4b7";
+      };
+    }
+    {
+      goPackagePath = "github.com/monochromegane/go-home";
+
+      src = fetchFromGitHub {
+        owner = "monochromegane";
+        repo = "go-home";
+        rev = "25d9dda593924a11ea52e4ffbc8abdb0dbe96401";
+        sha256 = "172chakrj22xfm0bcda4qj5zqf7lwr53pzwc3xj6wz8vd2bcxkww";
+      };
+    }
+    {
+      goPackagePath = "github.com/monochromegane/terminal";
+
+      src = fetchFromGitHub {
+        owner = "monochromegane";
+        repo = "terminal";
+        rev = "2da212063ce19aed90ee5bbb00ad1ad7393d7f48";
+        sha256 = "1rddaq9pk5q57ildms35iihghqk505gb349pb0f6k3svchay38nh";
+      };
+    }
+  ];
+
+  meta = with stdenv.lib; {
+    homepage = https://github.com/monochromegane/the_platinum_searcher;
+    description = "A code search tool similar to ack and the_silver_searcher(ag).";
+    platforms = platforms.all;
+    license = licenses.mit;
+  };
+}
diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix
index c7e68726fec10..17b0c4a23fc85 100644
--- a/pkgs/top-level/all-packages.nix
+++ b/pkgs/top-level/all-packages.nix
@@ -2927,6 +2927,8 @@ in
   platformioPackages = callPackage ../development/arduino/platformio { };
   platformio = platformioPackages.platformio-chrootenv.override {};
 
+  platinum-searcher = (callPackage ../tools/text/platinum-searcher { }).bin // { outputs = [ "bin" ]; };
+
   plex = callPackage ../servers/plex { enablePlexPass = config.plex.enablePlexPass or false; };
 
   ploticus = callPackage ../tools/graphics/ploticus {