nixpkgs/pkgs/tools/misc/pistol/default.nix

37 lines
791 B
Nix
Raw Normal View History

2020-02-13 04:27:42 -08:00
{ stdenv
, buildGoModule
, fetchFromGitHub
, file
}:
buildGoModule rec {
pname = "pistol";
2020-11-11 12:41:25 -08:00
version = "0.1.7";
2020-02-13 04:27:42 -08:00
src = fetchFromGitHub {
owner = "doronbehar";
repo = pname;
rev = "v${version}";
2020-11-11 12:41:25 -08:00
sha256 = "0kspix7ac4fb0gblrlhnf8hi2ijc997qqkhmy47jibmj6120lmqk";
2020-02-13 04:27:42 -08:00
};
2020-11-11 12:41:25 -08:00
vendorSha256 = "08fjavadx5mwibzc130mlhp4zph6iwv15xnd4rsniw6zldkzmczy";
2020-02-13 04:27:42 -08:00
doCheck = false;
2020-02-13 04:27:42 -08:00
subPackages = [ "cmd/pistol" ];
buildInputs = [
file
];
2020-07-18 02:20:00 -07:00
buildFlagsArray = [ "-ldflags=-s -w -X main.Version=${version}" ];
2020-02-13 04:27:42 -08:00
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-07-18 02:20:00 -07:00
}