mirror of
https://github.com/sstent/vmimages.git
synced 2026-02-13 19:06:54 +00:00
sync
This commit is contained in:
@@ -1,11 +1,17 @@
|
|||||||
{ pkgs, lib, stdenv }:
|
{ lib, stdenv, makeWrapper }:
|
||||||
|
|
||||||
let
|
let
|
||||||
script = pkgs.writeShellScriptBin "helloWorld" builtins.readFile ./wsl-ssh-agent-forward.sh;
|
|
||||||
name = "wsl-ssh-agent-forward"
|
name = "wsl-ssh-agent-forward"
|
||||||
|
version = "0.1";
|
||||||
in stdenv.mkDerivation rec {
|
in stdenv.mkDerivation rec {
|
||||||
pname = name;
|
pname = name;
|
||||||
# Add the derivation to the PATH
|
src = ./wsl-ssh-agent-forward.sh;
|
||||||
buildInputs = [ script ];
|
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}'
|
||||||
|
'';
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user