From 7f3c4b5df206656f05c3b2c55159a3bf721e3d18 Mon Sep 17 00:00:00 2001 From: AndersonTorres Date: Tue, 16 Feb 2021 00:12:32 -0300 Subject: clipman: rename from tools/misc to tools/wayland --- pkgs/tools/wayland/clipman/default.nix | 37 ++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 pkgs/tools/wayland/clipman/default.nix (limited to 'pkgs/tools/wayland') diff --git a/pkgs/tools/wayland/clipman/default.nix b/pkgs/tools/wayland/clipman/default.nix new file mode 100644 index 00000000000..3a2c2ca6015 --- /dev/null +++ b/pkgs/tools/wayland/clipman/default.nix @@ -0,0 +1,37 @@ +{ buildGoModule +, fetchFromGitHub +, lib +, wl-clipboard +, makeWrapper +}: + +buildGoModule rec { + pname = "clipman"; + version = "1.5.2"; + + src = fetchFromGitHub { + owner = "yory8"; + repo = pname; + rev = "v${version}"; + sha256 = "1lf5fbzplyc1mpdqgfwbrn8m5568vhjf48580fvvfgbhz6zcil8n"; + }; + + vendorSha256 = "18jw4z0lcrh00yjr3qdkgvlrpfwqbsm0ncz7fp1h72pzkh41byv7"; + + doCheck = false; + + nativeBuildInputs = [ makeWrapper ]; + + postInstall = '' + wrapProgram $out/bin/clipman \ + --prefix PATH : ${lib.makeBinPath [ wl-clipboard ]} + ''; + + meta = with lib; { + homepage = "https://github.com/yory8/clipman"; + description = "A simple clipboard manager for Wayland"; + license = licenses.gpl3Only; + maintainers = with maintainers; [ ma27 ]; + platforms = platforms.linux; + }; +} -- cgit 1.4.1