depot/third_party/nixpkgs/pkgs/tools/misc/pistol/default.nix
Default email 7cbac10661 Project import generated by Copybara.
GitOrigin-RevId: a371c1071161104d329f6a85d922fd92b7cbab63
2020-11-12 09:05:59 +00:00

36 lines
791 B
Nix

{ stdenv
, buildGoModule
, fetchFromGitHub
, file
}:
buildGoModule rec {
pname = "pistol";
version = "0.1.7";
src = fetchFromGitHub {
owner = "doronbehar";
repo = pname;
rev = "v${version}";
sha256 = "0kspix7ac4fb0gblrlhnf8hi2ijc997qqkhmy47jibmj6120lmqk";
};
vendorSha256 = "08fjavadx5mwibzc130mlhp4zph6iwv15xnd4rsniw6zldkzmczy";
doCheck = false;
subPackages = [ "cmd/pistol" ];
buildInputs = [
file
];
buildFlagsArray = [ "-ldflags=-s -w -X main.Version=${version}" ];
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 ];
};
}