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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

58 lines
1.1 KiB
Nix
Raw Normal View History

2021-06-23 23:21:28 +00:00
{ lib
, stdenv
, fetchFromGitHub
, gtk3
2022-09-05 14:16:45 +00:00
, pcre2
2021-06-23 23:21:28 +00:00
, glib
, desktop-file-utils
, meson
, ninja
, pkg-config
, wrapGAppsHook
, gettext
2022-09-05 14:16:45 +00:00
, icu
2021-06-23 23:21:28 +00:00
}:
2022-09-05 14:16:45 +00:00
stdenv.mkDerivation rec {
2021-06-23 23:21:28 +00:00
pname = "fsearch";
2023-08-31 10:49:10 +00:00
version = "0.2.3";
2021-06-23 23:21:28 +00:00
src = fetchFromGitHub {
owner = "cboxdoerfer";
2022-09-05 14:16:45 +00:00
repo = pname;
rev = version;
2023-08-31 10:49:10 +00:00
hash = "sha256-VBcoDxh4ip2zLBcXVHDe9s1lVRQF4bZJKsGUt6sPcos=";
2021-06-23 23:21:28 +00:00
};
nativeBuildInputs = [
desktop-file-utils
meson
ninja
pkg-config
wrapGAppsHook
gettext
];
buildInputs = [
glib
gtk3
2022-09-05 14:16:45 +00:00
pcre2
icu
2021-06-23 23:21:28 +00:00
];
preFixup = ''
substituteInPlace $out/share/applications/io.github.cboxdoerfer.FSearch.desktop \
--replace "Exec=fsearch" "Exec=$out/bin/fsearch"
'';
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;
2021-10-08 19:38:15 +00:00
mainProgram = "fsearch";
2022-01-02 23:27:38 +00:00
broken = stdenv.isDarwin; # never built on Hydra https://hydra.nixos.org/job/nixpkgs/trunk/fsearch.x86_64-darwin
2021-06-23 23:21:28 +00:00
};
}