git.iko.soy/typeable/nixpkgs
on master help sign in
platinum-searcher: init at 2.1.1
commita4ecc91d398300a401c0252fc0bc39282fe10c58 authorAlexey Lebedeff <alebedev@mirantis.com> dateWed 18 May 2016, 19:23 (11 years ago) parentc444c40
2 files changed+72
pkgs/tools/text/platinum-searcher/default.nix+70 pkgs/top-level/all-packages.nix+2
pkgs/tools/text/platinum-searcher/default.nixnew file+70
@@ -0,0 +1,70 @@
1+{ stdenv, lib, go, goPackages, fetchFromGitHub }:
2+
3+with goPackages;
4+
5+buildGoPackage rec {
6+ name = "the_platinum_searcher-${version}";
7+ version = "2.1.1";
8+ rev = "v2.1.1";
9+
10+ buildInputs = [ go go-flags ansicolor text toml yaml-v2 ];
11+
12+ goPackagePath = "github.com/monochromegane/the_platinum_searcher";
13+
14+ src = fetchFromGitHub {
15+ inherit rev;
16+ owner = "monochromegane";
17+ repo = "the_platinum_searcher";
18+ sha256 = "06cs936w3l64ikszcysdm9ijn52kwgi1ffjxkricxbdb677gsk23";
19+ };
20+
21+ extraSrcs = [
22+ {
23+ goPackagePath = "github.com/monochromegane/conflag";
24+
25+ src = fetchFromGitHub {
26+ owner = "monochromegane";
27+ repo = "conflag";
28+ rev = "6d68c9aa4183844ddc1655481798fe4d90d483e9";
29+ sha256 = "0csfr5c8d3kbna9sqhzfp2z06wq6mc6ijja1zj2i82kzsq8534wa";
30+ };
31+ }
32+ {
33+ goPackagePath = "github.com/monochromegane/go-gitignore";
34+
35+ src = fetchFromGitHub {
36+ owner = "monochromegane";
37+ repo = "go-gitignore";
38+ rev = "38717d0a108ca0e5af632cd6845ca77d45b50729";
39+ sha256 = "0r1inabpgg6sn6i47b02hcmd2p4dc1ab1mcy20mn1b2k3mpdj4b7";
40+ };
41+ }
42+ {
43+ goPackagePath = "github.com/monochromegane/go-home";
44+
45+ src = fetchFromGitHub {
46+ owner = "monochromegane";
47+ repo = "go-home";
48+ rev = "25d9dda593924a11ea52e4ffbc8abdb0dbe96401";
49+ sha256 = "172chakrj22xfm0bcda4qj5zqf7lwr53pzwc3xj6wz8vd2bcxkww";
50+ };
51+ }
52+ {
53+ goPackagePath = "github.com/monochromegane/terminal";
54+
55+ src = fetchFromGitHub {
56+ owner = "monochromegane";
57+ repo = "terminal";
58+ rev = "2da212063ce19aed90ee5bbb00ad1ad7393d7f48";
59+ sha256 = "1rddaq9pk5q57ildms35iihghqk505gb349pb0f6k3svchay38nh";
60+ };
61+ }
62+ ];
63+
64+ meta = with stdenv.lib; {
65+ homepage = https://github.com/monochromegane/the_platinum_searcher;
66+ description = "A code search tool similar to ack and the_silver_searcher(ag).";
67+ platforms = platforms.all;
68+ license = licenses.mit;
69+ };
70+}
pkgs/top-level/all-packages.nix+2
@@ -2927,6 +2927,8 @@ in
29272927 platformioPackages = callPackage ../development/arduino/platformio { };
29282928 platformio = platformioPackages.platformio-chrootenv.override {};
29292929
2930+ platinum-searcher = (callPackage ../tools/text/platinum-searcher { }).bin // { outputs = [ "bin" ]; };
2931+
29302932 plex = callPackage ../servers/plex { enablePlexPass = config.plex.enablePlexPass or false; };
29312933
29322934 ploticus = callPackage ../tools/graphics/ploticus {