From cf7e051edede1951d023f373d967254572d26bd4 Mon Sep 17 00:00:00 2001 From: Artturin Date: Thu, 24 Jun 2021 02:21:28 +0300 Subject: [PATCH] fsearch: init at unstable-2021-06-23 --- pkgs/tools/misc/fsearch/default.nix | 58 +++++++++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 + 2 files changed, 60 insertions(+) create mode 100644 pkgs/tools/misc/fsearch/default.nix diff --git a/pkgs/tools/misc/fsearch/default.nix b/pkgs/tools/misc/fsearch/default.nix new file mode 100644 index 000000000000..e2782ef652be --- /dev/null +++ b/pkgs/tools/misc/fsearch/default.nix @@ -0,0 +1,58 @@ +{ lib +, stdenv +, fetchFromGitHub +, gtk3 +, pcre +, glib +, desktop-file-utils +, meson +, ninja +, pkg-config +, wrapGAppsHook +, unstableGitUpdater +, gettext +}: + +stdenv.mkDerivation { + pname = "fsearch"; + version = "unstable-2021-06-23"; + + src = fetchFromGitHub { + owner = "cboxdoerfer"; + repo = "fsearch"; + rev = "9300cc03ab2f0cea3a70abb5477bda8b52c4afd1"; + sha256 = "16qh2si48j113yhay5wawr7dvldks6jb32za41j2sng7n4ryw221"; + }; + + nativeBuildInputs = [ + desktop-file-utils + meson + ninja + pkg-config + wrapGAppsHook + gettext + ]; + + buildInputs = [ + glib + gtk3 + pcre + ]; + + preFixup = '' + substituteInPlace $out/share/applications/io.github.cboxdoerfer.FSearch.desktop \ + --replace "Exec=fsearch" "Exec=$out/bin/fsearch" + ''; + + passthru.updateScript = unstableGitUpdater { + url = "https://github.com/cboxdoerfer/fsearch.git"; + }; + + meta = with lib; { + description = "A fast file search utility for Unix-like systems based on GTK+3"; + homepage = "https://github.com/cboxdoerfer/fsearch.git"; + license = licenses.gpl2Plus; + maintainers = with maintainers; [ artturin ]; + platforms = platforms.unix; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 7f9f5d146e27..8852ade63a6a 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -13434,6 +13434,8 @@ in autoreconfHook = buildPackages.autoreconfHook269; }; + fsearch = callPackage ../tools/misc/fsearch { }; + fujprog = callPackage ../development/tools/misc/fujprog { inherit (darwin.apple_sdk.frameworks) IOKit; };