nixpkgs/pkgs/by-name/wl/wl-clip-persist/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

37 lines
830 B
Nix
Raw Normal View History

2024-04-16 19:31:44 +03:00
{
lib,
stdenv,
rustPlatform,
fetchFromGitHub,
pkg-config,
wayland,
2023-06-18 17:14:18 +03:00
}:
2024-04-16 19:31:44 +03:00
rustPlatform.buildRustPackage rec {
2023-06-18 17:14:18 +03:00
pname = "wl-clip-persist";
2024-05-07 07:49:50 +03:00
version = "0.4.3";
2023-06-18 17:14:18 +03:00
src = fetchFromGitHub {
owner = "Linus789";
repo = "wl-clip-persist";
2024-04-16 19:31:44 +03:00
rev = "v${version}";
2024-05-07 07:49:50 +03:00
hash = "sha256-dFhHsBazBHVWgPxoRDNwh8Yctt4w64E0RyFaHEC4mvk=";
2023-06-18 17:14:18 +03:00
};
2024-05-07 07:49:50 +03:00
cargoHash = "sha256-rhXVjXhRPCjt7ur7fQviGFXVtQneuFKWZcDNkhM9tkY=";
2023-06-18 17:14:18 +03:00
2024-04-16 19:31:44 +03:00
nativeBuildInputs = [ pkg-config ];
2023-06-18 17:14:18 +03:00
2024-04-16 19:31:44 +03:00
buildInputs = [ wayland ];
2023-06-18 17:14:18 +03:00
meta = with lib; {
broken = stdenv.isDarwin;
2023-06-18 17:14:18 +03:00
description = "Keep Wayland clipboard even after programs close";
homepage = "https://github.com/Linus789/wl-clip-persist";
inherit (wayland.meta) platforms;
2023-06-18 17:14:18 +03:00
license = licenses.mit;
mainProgram = "wl-clip-persist";
maintainers = with maintainers; [ name-snrl ];
2023-06-18 17:14:18 +03:00
};
}