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