depot/third_party/nixpkgs/pkgs/tools/misc/pistol/default.nix
Default email 8ac5e011d6 Project import generated by Copybara.
GitOrigin-RevId: 2c3273caa153ee8eb5786bc8141b85b859e7efd7
2020-04-24 19:36:52 -04:00

32 lines
698 B
Nix

{ stdenv
, buildGoModule
, fetchFromGitHub
, file
}:
buildGoModule rec {
pname = "pistol";
version = "0.0.5";
src = fetchFromGitHub {
owner = "doronbehar";
repo = pname;
rev = "v${version}";
sha256 = "1zxvpmy6c26dhg5wpk5cgaqipw5372crkhm1vaghm8jkiw7sjwvw";
};
modSha256 = "13yxcfd29ziprjsjl2ji7w5i2506hwwl3y0ycaphj2wlcd75rdxs";
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 ];
};
}