about summary refs log tree commit diff
path: root/nixpkgs/pkgs/tools/wayland/wl-clip-persist/default.nix
blob: 2cfe8cc0174386bae777013a1e7344be06eb91c4 (plain) (blame)
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
{ lib
, stdenv
, rustPlatform
, fetchFromGitHub
, pkg-config
, wayland
}:

rustPlatform.buildRustPackage {
  pname = "wl-clip-persist";
  version = "0.3.1";

  src = fetchFromGitHub {
    owner = "Linus789";
    repo = "wl-clip-persist";
    # upstream doesn't tag releases
    rev = "6ba11a2aa295d780f0b2e8f005cf176601d153b0";
    hash = "sha256-wg4xEXLAZpWflFejP7ob4cnmRvo9d/0dL9hceG+RUr0=";
  };

  cargoHash = "sha256-vNxNvJ5tA323EVArJ6glNslkq/Q6u7NsIpTYO1Q3GEw=";

  nativeBuildInputs = [
    pkg-config
  ];

  buildInputs = [
    wayland
  ];

  meta = with lib; {
    broken = stdenv.isDarwin;
    description = "Keep Wayland clipboard even after programs close";
    homepage = "https://github.com/Linus789/wl-clip-persist";
    inherit (wayland.meta) platforms;
    license = licenses.mit;
    mainProgram = "wl-clip-persist";
    maintainers = with maintainers; [ ];
  };
}