2017-09-29 19:23:01 +02:00
|
|
|
{ stdenv, buildGoPackage, fetchFromGitHub }:
|
2014-08-03 15:26:06 +02:00
|
|
|
|
2017-09-29 19:23:01 +02:00
|
|
|
buildGoPackage rec {
|
2014-08-03 15:26:06 +02:00
|
|
|
name = "peco-${version}";
|
2017-09-29 19:23:01 +02:00
|
|
|
version = "0.5.1";
|
2014-08-03 15:26:06 +02:00
|
|
|
|
2017-09-29 19:23:01 +02:00
|
|
|
goPackagePath = "github.com/peco/peco";
|
|
|
|
subPackages = [ "cmd/peco" ];
|
2014-08-03 15:26:06 +02:00
|
|
|
|
2017-09-29 19:23:01 +02:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "peco";
|
|
|
|
repo = "peco";
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "0jnlpr3nxx8xmjb6w4jlwshzz0p9hlww9919qbkm66afv16k0vm8";
|
|
|
|
};
|
2014-08-03 15:26:06 +02:00
|
|
|
|
2017-09-29 19:23:01 +02:00
|
|
|
goDeps = ./deps.nix;
|
2014-08-03 15:26:06 +02:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Simplistic interactive filtering tool";
|
|
|
|
homepage = https://github.com/peco/peco;
|
|
|
|
license = licenses.mit;
|
|
|
|
# peco should work on Windows or other POSIX platforms, but the go package
|
|
|
|
# declares only linux and darwin.
|
|
|
|
platforms = platforms.linux ++ platforms.darwin;
|
|
|
|
};
|
|
|
|
}
|