summaryrefslogtreecommitdiffstats
path: root/pkgs/by-name/cu/cursor-clip/package.nix
blob: 8fa3261a805786ddf7bd6c776d663c7ad1e21e60 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
{
  lib,
  rustPlatform,
  fetchFromGitHub,
  pkg-config,
  cairo,
  glib,
  pango,
  gdk-pixbuf,
  graphene,
  gtk4,
  gtk4-layer-shell,
  libadwaita,
}:

rustPlatform.buildRustPackage (finalAttrs: {
  pname = "cursor-clip";
  version = "0-unstable-2026-02-10";

  src = fetchFromGitHub {
    owner = "sirulex";
    repo = "cursor-clip";
    rev = "ad677e4b65340647b95b02a3cd1d955111506695";
    hash = "sha256-Hxg57v+gFjW7XyoGIGt7Pw4uXokBIWw88/0a00PzckI=";
  };

  cargoHash = "sha256-5p5tt3dnluRkY0/zIXv6p8mi/hd42yV2E8qsVy+lqz0=";

  nativeBuildInputs = [
    pkg-config
    glib
  ];

  buildInputs = [
    cairo
    pango
    gdk-pixbuf
    graphene
    gtk4
    gtk4-layer-shell
    libadwaita
  ];

  meta = {
    description = "Cursor Clip - GTK4 Clipboard Manager with dynamic positioning. Features a Windows 11–style clipboard history, adapted to native GNOME design";
    homepage = "https://github.com/sirulex/cursor-clip";
    license = lib.licenses.gpl3Only;
    maintainers = with lib.maintainers; [ paperdigits ];
    mainProgram = "cursor-clip";
  };
})