This commit is contained in:
2023-02-21 12:07:21 -05:00
parent e73ac8be43
commit b951a18b25

View File

@@ -1,11 +1,17 @@
{ pkgs, lib, stdenv }:
{ lib, stdenv, makeWrapper }:
let
script = pkgs.writeShellScriptBin "helloWorld" builtins.readFile ./wsl-ssh-agent-forward.sh;
name = "wsl-ssh-agent-forward"
version = "0.1";
in stdenv.mkDerivation rec {
pname = name;
# Add the derivation to the PATH
buildInputs = [ script ];
src = ./wsl-ssh-agent-forward.sh;
nativeBuildInputs = [makeWrapper];
installPhase = ''
install -Dm755 wsl-ssh-agent-forward.sh $out/bin/wsl-ssh-agent-forward.sh
wrapProgram $out/bin/wsl-ssh-agent-forward.sh --prefix PATH : '${makeBinPath buildInputs}'
'';
}