{ pkgs, ... }: # FIXME: https://github.com/nix-community/NixOS-WSL/issues/700 let wl-copy = pkgs.writeShellScriptBin "wl-copy" '' printf '%s' "$(cat)" | ${pkgs.dos2unix}/bin/unix2dos | clip.exe ''; wl-paste = pkgs.writeShellScriptBin "wl-paste" '' powershell.exe -command Get-Clipboard | ${pkgs.dos2unix}/bin/dos2unix ''; in pkgs.stdenv.mkDerivation { name = "wsl-wl-clipboard"; version = "1.0"; src = ./.; buildInputs = [ wl-copy wl-paste ]; installPhase = '' mkdir -p $out/bin ln -s ${wl-copy}/bin/wl-copy $out/bin/wl-copy ln -s ${wl-paste}/bin/wl-paste $out/bin/wl-paste ''; }