`xsel --clipboard` has identical behaviour if you are on Linux. But I guess the wrapper is still nice to abstract across OSes.
Just added this to my shell alias config on Nix and it works nicely, even with pipes
`cp = "${pkgs.xsel}/bin/xsel --clipboard";`