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

32 lines
700 B
Nix
Raw Normal View History

2020-02-13 13:27:42 +01:00
{ stdenv
, buildGoModule
, fetchFromGitHub
, file
}:
buildGoModule rec {
pname = "pistol";
2020-04-17 18:10:10 +02:00
version = "0.1.1";
2020-02-13 13:27:42 +01:00
src = fetchFromGitHub {
owner = "doronbehar";
repo = pname;
rev = "v${version}";
2020-04-17 18:10:10 +02:00
sha256 = "1d9c1bhidh781dis4427wramfrla4avqw9y2bmpjp81cqq3nc27d";
2020-02-13 13:27:42 +01:00
};
vendorSha256 = "1f780vhxw0brvnr8hhah4sf6ms8spar29rqmy1kcqf9m75n94g56";
2020-02-13 13:27:42 +01: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 ];
};
}