This commit is contained in:
2023-02-19 15:43:32 -05:00
parent 5fec811ff7
commit 49a03f362c
2 changed files with 15 additions and 1 deletions

View File

@@ -42,5 +42,5 @@ systemd.user.services.ssh-proxy = {
wantedBy = [ "default.target" ];
};
pkgs.callPackage ./npiperelay.nix {};
}

14
hosts/wsl2/npiperelay.nix Normal file
View File

@@ -0,0 +1,14 @@
{ pkgs ? import <nixpkgs> {} }:
pkgs.stdenv.mkDerivation {
name = "npiperelay";
src = pkgs.fetchurl {
url = "https://github.com/rupor-github/wsl-ssh-agent/releases/download/v1.6.3/wsl-ssh-agent.zip";
sha256 = "39e6765a6836484707c26f3372561380b1e619492dc91bf8ebeec37aaee8f3d7";
};
phases = ["installPhase" "patchPhase"];
installPhase = ''
mkdir -p $out/bin
cp $src $out/bin/npiperelay.exe
chmod +x $out/bin/npiperelay.exe
'';
}