summary refs log tree commit diff
path: root/pkgs/tools/wayland
diff options
context:
space:
mode:
authorAndersonTorres <torres.anderson.85@protonmail.com>2021-02-16 00:12:32 -0300
committerAndersonTorres <torres.anderson.85@protonmail.com>2021-02-16 12:37:39 -0300
commit7f3c4b5df206656f05c3b2c55159a3bf721e3d18 (patch)
treea21951424e19ef35309d3efe1077b041a86719c5 /pkgs/tools/wayland
parent6f3517b533b9c5c53cb81f9ad646f467bd81f500 (diff)
downloadnixpkgs-7f3c4b5df206656f05c3b2c55159a3bf721e3d18.tar
nixpkgs-7f3c4b5df206656f05c3b2c55159a3bf721e3d18.tar.gz
nixpkgs-7f3c4b5df206656f05c3b2c55159a3bf721e3d18.tar.bz2
nixpkgs-7f3c4b5df206656f05c3b2c55159a3bf721e3d18.tar.lz
nixpkgs-7f3c4b5df206656f05c3b2c55159a3bf721e3d18.tar.xz
nixpkgs-7f3c4b5df206656f05c3b2c55159a3bf721e3d18.tar.zst
nixpkgs-7f3c4b5df206656f05c3b2c55159a3bf721e3d18.zip
clipman: rename from tools/misc to tools/wayland
Diffstat (limited to 'pkgs/tools/wayland')
-rw-r--r--pkgs/tools/wayland/clipman/default.nix37
1 files changed, 37 insertions, 0 deletions
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;
+  };
+}