From 49a03f362c0e23c4cbc54fb838a1860b16295ebd Mon Sep 17 00:00:00 2001 From: sstent Date: Sun, 19 Feb 2023 15:43:32 -0500 Subject: [PATCH] sync --- hosts/wsl2/default.nix | 2 +- hosts/wsl2/npiperelay.nix | 14 ++++++++++++++ 2 files changed, 15 insertions(+), 1 deletion(-) create mode 100644 hosts/wsl2/npiperelay.nix diff --git a/hosts/wsl2/default.nix b/hosts/wsl2/default.nix index 148bc97..b81de82 100644 --- a/hosts/wsl2/default.nix +++ b/hosts/wsl2/default.nix @@ -42,5 +42,5 @@ systemd.user.services.ssh-proxy = { wantedBy = [ "default.target" ]; }; - +pkgs.callPackage ./npiperelay.nix {}; } \ No newline at end of file diff --git a/hosts/wsl2/npiperelay.nix b/hosts/wsl2/npiperelay.nix new file mode 100644 index 0000000..dbc9056 --- /dev/null +++ b/hosts/wsl2/npiperelay.nix @@ -0,0 +1,14 @@ +{ pkgs ? import {} }: +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 + ''; +} \ No newline at end of file