2021-06-28 23:13:55 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, gtk3
|
2022-09-22 12:36:57 +00:00
|
|
|
, pcre2
|
2021-06-28 23:13:55 +00:00
|
|
|
, glib
|
|
|
|
, desktop-file-utils
|
|
|
|
, meson
|
|
|
|
, ninja
|
|
|
|
, pkg-config
|
2024-05-15 15:35:15 +00:00
|
|
|
, wrapGAppsHook3
|
2021-06-28 23:13:55 +00:00
|
|
|
, gettext
|
2022-09-22 12:36:57 +00:00
|
|
|
, icu
|
2021-06-28 23:13:55 +00:00
|
|
|
}:
|
|
|
|
|
2022-09-22 12:36:57 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2021-06-28 23:13:55 +00:00
|
|
|
pname = "fsearch";
|
2023-10-09 19:29:22 +00:00
|
|
|
version = "0.2.3";
|
2021-06-28 23:13:55 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "cboxdoerfer";
|
2022-09-22 12:36:57 +00:00
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2023-10-09 19:29:22 +00:00
|
|
|
hash = "sha256-VBcoDxh4ip2zLBcXVHDe9s1lVRQF4bZJKsGUt6sPcos=";
|
2021-06-28 23:13:55 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
desktop-file-utils
|
|
|
|
meson
|
|
|
|
ninja
|
|
|
|
pkg-config
|
2024-05-15 15:35:15 +00:00
|
|
|
wrapGAppsHook3
|
2021-06-28 23:13:55 +00:00
|
|
|
gettext
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
glib
|
|
|
|
gtk3
|
2022-09-22 12:36:57 +00:00
|
|
|
pcre2
|
|
|
|
icu
|
2021-06-28 23:13:55 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
preFixup = ''
|
|
|
|
substituteInPlace $out/share/applications/io.github.cboxdoerfer.FSearch.desktop \
|
|
|
|
--replace "Exec=fsearch" "Exec=$out/bin/fsearch"
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Fast file search utility for Unix-like systems based on GTK+3";
|
2021-06-28 23:13:55 +00:00
|
|
|
homepage = "https://github.com/cboxdoerfer/fsearch.git";
|
|
|
|
license = licenses.gpl2Plus;
|
|
|
|
maintainers = with maintainers; [ artturin ];
|
|
|
|
platforms = platforms.unix;
|
2021-10-09 14:59:57 +00:00
|
|
|
mainProgram = "fsearch";
|
2024-09-26 11:04:55 +00:00
|
|
|
broken = stdenv.hostPlatform.isDarwin; # never built on Hydra https://hydra.nixos.org/job/nixpkgs/trunk/fsearch.x86_64-darwin
|
2021-06-28 23:13:55 +00:00
|
|
|
};
|
|
|
|
}
|