2020-02-13 12:27:42 +00:00
|
|
|
{ stdenv
|
|
|
|
, buildGoModule
|
|
|
|
, fetchFromGitHub
|
|
|
|
, file
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "pistol";
|
2020-06-09 00:42:58 +01:00
|
|
|
version = "0.1.2";
|
2020-02-13 12:27:42 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "doronbehar";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2020-06-09 00:42:58 +01:00
|
|
|
sha256 = "1ar8c7s8ihcwrwfspmqw7cb5560wkbdc5qyvddkx8lj03cjhcslj";
|
2020-02-13 12:27:42 +00:00
|
|
|
};
|
|
|
|
|
2020-06-09 00:42:58 +01:00
|
|
|
vendorSha256 = "1mhxb72fzpa2n88i9h154aci346dgcs2njznkjxchivz28crbqr8";
|
2020-02-13 12:27:42 +00:00
|
|
|
|
|
|
|
subPackages = [ "cmd/pistol" ];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
file
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "General purpose file previewer designed for Ranger, Lf to make scope.sh redundant";
|
|
|
|
homepage = "https://github.com/doronbehar/pistol";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ doronbehar ];
|
|
|
|
};
|
2020-05-01 02:59:00 +01:00
|
|
|
}
|