git.iko.soy/typeable/nixpkgs
on master help sign in
peco: 0.2.10 -> 0.5.1:
commitf7327c393bea6e01e54260ab1bdcb34f0ec4f15c authorTom Saeger <tom.saeger@gmail.com> dateFri 29 Sep 2017, 12:23 (9 years ago) parent9824ca6
2 files changed+69−48
pkgs/tools/text/peco/default.nix+12−48 pkgs/tools/text/peco/deps.nix+57
pkgs/tools/text/peco/default.nix+12−48
@@ -1,56 +1,20 @@
1−{ stdenv, go, fetchgit }:
1+{ stdenv, buildGoPackage, fetchFromGitHub }:
22
3−let
4− go-flags = fetchgit {
5− url = "git://github.com/jessevdk/go-flags";
6− rev = "ef51ed2000ee1721c7153e958511907b844b4a9c";
7− sha256 = "1abzc7ksglicaz6g6nry006vwvflsidvyzyig85pi3p852z6sc2j";
8− };
9− go-runewidth = fetchgit {
10− url = "git://github.com/mattn/go-runewidth";
11− rev = "63c378b851290989b19ca955468386485f118c65";
12− sha256 = "1z5mhfrpqdssn3603vwd95w69z28igwq96lh7b9rrdcx440i822d";
13− };
14− termbox-go = fetchgit {
15− url = "git://github.com/nsf/termbox-go";
16− rev = "bb19a81afd4bc2729799d1fedb19f7bd7ee284cf";
17− sha256 = "1zc8pb594l16yipis6xg2ra84bg315p63wqxa5abyam1y0333sn0";
18− };
19−in stdenv.mkDerivation rec {
3+buildGoPackage rec {
204 name = "peco-${version}";
21− version = "0.2.10";
22−
23− src = fetchgit {
24− url = "git://github.com/peco/peco";
25− rev = "4952013023ae1d92c10d826e6970c5a68959678d";
26− sha256 = "15blxy6a9ph6hm5wn14p025qidbspjy6hhmp4zbbgpxx2l1x8fpg";
27− };
28−
29− buildInputs = [ go ];
5+ version = "0.5.1";
306
31− sourceRoot = ".";
7+ goPackagePath = "github.com/peco/peco";
8+ subPackages = [ "cmd/peco" ];
329
33− buildPhase = ''
34− mkdir -p src/github.com/jessevdk/go-flags/
35− ln -s ${go-flags}/* src/github.com/jessevdk/go-flags
36−
37− mkdir -p src/github.com/mattn/go-runewidth/
38− ln -s ${go-runewidth}/* src/github.com/mattn/go-runewidth
39−
40− mkdir -p src/github.com/nsf/termbox-go/
41− ln -s ${termbox-go}/* src/github.com/nsf/termbox-go
42−
43− mkdir -p src/github.com/peco/peco
44− ln -s ${src}/* src/github.com/peco/peco
45−
46− export GOPATH=$PWD
47− go build -v -o peco src/github.com/peco/peco/cmd/peco/peco.go
48− ''; # */
10+ src = fetchFromGitHub {
11+ owner = "peco";
12+ repo = "peco";
13+ rev = "v${version}";
14+ sha256 = "0jnlpr3nxx8xmjb6w4jlwshzz0p9hlww9919qbkm66afv16k0vm8";
15+ };
4916
50− installPhase = ''
51− ensureDir $out/bin
52− cp peco $out/bin
53− '';
17+ goDeps = ./deps.nix;
5418
5519 meta = with stdenv.lib; {
5620 description = "Simplistic interactive filtering tool";
pkgs/tools/text/peco/deps.nixnew file+57
@@ -0,0 +1,57 @@
1+# This file was generated by https://github.com/kamilchm/go2nix v1.2.1
2+[
3+ {
4+ goPackagePath = "github.com/google/btree";
5+ fetch = {
6+ type = "git";
7+ url = "https://github.com/google/btree";
8+ rev = "0c3044bc8bada22db67b93f5760fe3f05d6a5c25";
9+ sha256 = "05rdnf2c9r0yicg17zsq58i0sm32p0lk8zdnb7nhr0v5hqldvps4";
10+ };
11+ }
12+ {
13+ goPackagePath = "github.com/jessevdk/go-flags";
14+ fetch = {
15+ type = "git";
16+ url = "https://github.com/jessevdk/go-flags";
17+ rev = "8bc97d602c3bfeb5fc6fc9b5a9c898f245495637";
18+ sha256 = "1h3il3ycgd54flbyqys4hm4gzx1lyn5ja1k79f2y7zbs6y0mf1lz";
19+ };
20+ }
21+ {
22+ goPackagePath = "github.com/lestrrat/go-pdebug";
23+ fetch = {
24+ type = "git";
25+ url = "https://github.com/lestrrat/go-pdebug";
26+ rev = "2e6eaaa5717f81bda41d27070d3c966f40a1e75f";
27+ sha256 = "05dx1f1yln47nazyi50zix82xbnyva3hily4gh5gaz021h01npax";
28+ };
29+ }
30+ {
31+ goPackagePath = "github.com/mattn/go-runewidth";
32+ fetch = {
33+ type = "git";
34+ url = "https://github.com/mattn/go-runewidth";
35+ rev = "737072b4e32b7a5018b4a7125da8d12de90e8045";
36+ sha256 = "09ni8bmj6p2b774bdh6mfcxl03bh5sqk860z03xpb6hv6yfxqkjm";
37+ };
38+ }
39+ {
40+ goPackagePath = "github.com/nsf/termbox-go";
41+ fetch = {
42+ type = "git";
43+ url = "https://github.com/nsf/termbox-go";
44+ rev = "abe82ce5fb7a42fbd6784a5ceb71aff977e09ed8";
45+ sha256 = "156i8apkga8b3272kjhapyqwspgcfkrr9kpqwc5lii43k4swghpv";
46+ };
47+ }
48+ {
49+ goPackagePath = "github.com/pkg/errors";
50+ fetch = {
51+ type = "git";
52+ url = "https://github.com/pkg/errors";
53+ rev = "248dadf4e9068a0b3e79f02ed0a610d935de5302";
54+ sha256 = "03l80r0i9bxl0vz363w62k4a8apzglgbrz6viwym3044sxkl1qks";
55+ };
56+ }
57+]