Browse Source

nixpkgs: add git version of wl-clipboard

Thomas Dy 5 years ago
parent
commit
daef6fd64f

+ 25 - 0
.config/nixpkgs/overlays/packages/wl-clipboard.nix

@@ -0,0 +1,25 @@
+{ stdenv, fetchFromGitHub, meson, ninja, pkgconfig
+, wayland, wayland-protocols }:
+
+stdenv.mkDerivation rec {
+  pname = "wl-clipboard";
+  version = "1.0.0-git";
+
+  src = fetchFromGitHub {
+    owner = "bugaevc";
+    repo = "wl-clipboard";
+    rev = "c010972e6b0d2eb3002c49a6a1b5620ff5f7c910";
+    sha256 = "020l3jy9gsj6gablwdfzp1wfa8yblay3axdjc56i9q8pbhz7g12j";
+  };
+
+  nativeBuildInputs = [ meson ninja pkgconfig wayland-protocols ];
+  buildInputs = [ wayland ];
+
+  meta = with stdenv.lib; {
+    description = "Command-line copy/paste utilities for Wayland";
+    homepage = https://github.com/bugaevc/wl-clipboard;
+    license = licenses.gpl3;
+    maintainers = with maintainers; [ dywedir ];
+    platforms = platforms.linux;
+  };
+}

+ 1 - 1
.config/nixpkgs/overlays/userPackages.nix

@@ -37,7 +37,6 @@ in
       zip
       shellcheck
       any-nix-shell
-      wl-clipboard
 
       # apps
       pcmanfm
@@ -69,6 +68,7 @@ in
     deadbeef = nixpkgs-unstable.deadbeef;
     cfn-lint = nixpkgs-unstable.python27.pkgs.callPackage ./packages/cfn-lint.nix {};
     cfn_flip = nixpkgs-unstable.python27.pkgs.callPackage ./packages/cfn_flip.nix {};
+    wl-clipboard = nixpkgs-unstable.callPackage ./packages/wl-clipboard.nix {};
 
     nix-rebuild = super.writeScriptBin "nix-rebuild" ''
       #!${super.stdenv.shell}