1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-05 12:02:47 +00:00
nixpkgs/pkgs/tools/misc/pistol/default.nix

32 lines
700 B
Nix
Raw Normal View History

2020-02-13 12:27:42 +00:00
{ stdenv
, buildGoModule
, fetchFromGitHub
, file
}:
buildGoModule rec {
pname = "pistol";
2020-06-09 00:42:58 +01:00
version = "0.1.2";
2020-02-13 12:27:42 +00:00
src = fetchFromGitHub {
owner = "doronbehar";
repo = pname;
rev = "v${version}";
2020-06-09 00:42:58 +01:00
sha256 = "1ar8c7s8ihcwrwfspmqw7cb5560wkbdc5qyvddkx8lj03cjhcslj";
2020-02-13 12:27:42 +00:00
};
2020-06-09 00:42:58 +01:00
vendorSha256 = "1mhxb72fzpa2n88i9h154aci346dgcs2njznkjxchivz28crbqr8";
2020-02-13 12:27:42 +00: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 ];
};
}