depot/third_party/nixpkgs/pkgs/tools/misc/pistol/default.nix
Default email 8ec1fd4587 Project import generated by Copybara.
GitOrigin-RevId: 266dc8c3d052f549826ba246d06787a219533b8f
2021-03-15 09:37:03 +01:00

36 lines
779 B
Nix

{ lib
, buildGoModule
, fetchFromGitHub
, file
}:
buildGoModule rec {
pname = "pistol";
version = "0.1.9";
src = fetchFromGitHub {
owner = "doronbehar";
repo = pname;
rev = "v${version}";
sha256 = "sha256-Q/W+1NvbuSu+QfezJpyeI5r4VlzdAAbOlSfFIT8knJs=";
};
vendorSha256 = "sha256-oXt2nZ9lcAiI9ZQtKuQrXOXDfqx3Ucvh/K6g7SScd2Q=";
doCheck = false;
subPackages = [ "cmd/pistol" ];
buildInputs = [
file
];
buildFlagsArray = [ "-ldflags=-s -w -X main.Version=${version}" ];
meta = with 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 ];
};
}