about summary refs log tree commit diff
path: root/pkgs
diff options
context:
space:
mode:
authorAleksana <me@aleksana.moe>2024-04-02 23:03:28 +0800
committerGitHub <noreply@github.com>2024-04-02 23:03:28 +0800
commit607fc64bee92b2c889d4e349a67f2c604d4b900d (patch)
tree6e484d0e611256cf9ed374555d1317329539cddf /pkgs
parenta62fab270ea6c170e8926326a3c5f4de7b4d5356 (diff)
parentb4f96d2b981a92a2d2699842adcfa9e758cad12e (diff)
Merge pull request #299555 from loicreynier/gh-f-init-at-1.1.5
gh-f: init at 1.1.5
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/by-name/gh/gh-f/package.nix41
1 files changed, 41 insertions, 0 deletions
diff --git a/pkgs/by-name/gh/gh-f/package.nix b/pkgs/by-name/gh/gh-f/package.nix
new file mode 100644
index 0000000000000..8fb4fa57d9b99
--- /dev/null
+++ b/pkgs/by-name/gh/gh-f/package.nix
@@ -0,0 +1,41 @@
+{ lib
+, fetchFromGitHub
+, stdenvNoCC
+, makeWrapper
+, fzf
+, coreutils
+, bat
+}:
+
+stdenvNoCC.mkDerivation rec {
+  pname = "gh-f";
+  version = "1.1.5";
+
+  src = fetchFromGitHub {
+    owner = "gennaro-tedesco";
+    repo = "gh-f";
+    rev = "v${version}";
+    hash = "sha256-ITl8T8Oe21m047ygFlxWVjzUYPG4rlcTjfSpsropYJw=";
+  };
+
+  nativeBuildInputs = [
+    makeWrapper
+  ];
+
+  installPhase = ''
+    install -D -m755 "gh-f" "$out/bin/gh-f"
+  '';
+
+  postFixup = ''
+    wrapProgram "$out/bin/gh-f" --prefix PATH : "${lib.makeBinPath [fzf bat coreutils]}"
+  '';
+
+  meta = with lib; {
+    homepage = "https://github.com/gennaro-tedesco/gh-f";
+    description = "GitHub CLI ultimate FZF extension";
+    maintainers = with maintainers; [ loicreynier ];
+    license = licenses.unlicense;
+    mainProgram = "gh-f";
+    platforms = platforms.all;
+  };
+}