chromium,chromedriver: 129.0.6668.91 -> 129.0.6668.100
[NixPkgs.git] / pkgs / by-name / un / unipicker / package.nix
blob9549c30f781503e0beb70743d1d510af1d94e939
2   stdenv,
3   fetchFromGitHub,
4   lib,
5   fzf,
6   xclip,
7 }:
9 stdenv.mkDerivation (finalAttrs: {
10   pname = "unipicker";
11   version = "2.0.1";
13   src = fetchFromGitHub {
14     owner = "jeremija";
15     repo = "unipicker";
16     rev = "v${finalAttrs.version}";
17     hash = "sha256-Br9nCK5eWoSN1i4LM2F31B62L9vuN5KzjS9pC9lq9oM=";
18   };
20   buildInputs = [
21     fzf
22     xclip
23   ];
25   preInstall = ''
26     substituteInPlace unipicker \
27       --replace-fail "/etc/unipickerrc" "$out/etc/unipickerrc" \
28       --replace-fail "fzf" "${fzf}/bin/fzf"
29     substituteInPlace unipickerrc \
30       --replace-fail "/usr/local" "$out" \
31       --replace-fail "fzf" "${fzf}/bin/fzf"
32   '';
34   makeFlags = [
35     "PREFIX=${placeholder "out"}"
36     "DESTDIR=${placeholder "out"}"
37   ];
39   meta = {
40     description = "CLI utility for searching unicode characters by description and optionally copying them to clipboard";
41     homepage = "https://github.com/jeremija/unipicker";
42     license = lib.licenses.mit;
43     maintainers = with lib.maintainers; [ sigmanificient ];
44     platforms = lib.platforms.unix;
45     mainProgram = "unipicker";
46   };