mirror of
https://github.com/sstent/vmimages.git
synced 2025-12-06 06:01:51 +00:00
53 lines
1.4 KiB
Nix
53 lines
1.4 KiB
Nix
{ lib, stdenv, fetchurl ,unzip }:
|
|
|
|
let
|
|
version = "1.6.3";
|
|
srcs = {
|
|
x86_64-linux = fetchurl {
|
|
url =
|
|
"https://github.com/rupor-github/wsl-ssh-agent/releases/download/v1.5.2/wsl-ssh-agent.zip";
|
|
sha256 = "sha256-OeZ2Wmg2SEcHwm8zclYTgLHmGUktyRv46+7Deq7o89c=";
|
|
};
|
|
|
|
# aarch64-linux = fetchurl {
|
|
# url =
|
|
# "https://deconz.dresden-elektronik.de/debian/stable/deconz_${version}-debian-buster-stable_arm64.deb";
|
|
# sha256 = "sha256-zuy4e9bzcRqDeXP6mfzZLCDK/3we25LH6xktnO6HXps=";
|
|
# };
|
|
};
|
|
|
|
in stdenv.mkDerivation rec {
|
|
pname = "npiperelay";
|
|
inherit version;
|
|
|
|
src = srcs.${stdenv.hostPlatform.system};
|
|
|
|
nativeBuildInputs = [ unzip ];
|
|
|
|
#buildInputs = [ qtserialport qtwebsockets ];
|
|
unpackPhase = ''
|
|
mkdir npiperelay-$version
|
|
cd npiperelay-$version
|
|
unzip $src
|
|
'';
|
|
#unpackPhase = "dpkg-deb -x $src .";
|
|
|
|
installPhase = ''
|
|
mkdir -p $out/bin
|
|
cp $src $out/bin/npiperelay.exe
|
|
chmod +x $out/bin/npiperelay.exe
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description =
|
|
"Helper to interface with Windows ssh-agent.exe service from Windows Subsystem for Linux (WSL)";
|
|
# 2019-08-19: The homepage links to old software that doesn't even work --
|
|
# it fails to detect ConBee2.
|
|
homepage =
|
|
"https://github.com/rupor-github/wsl-ssh-agent";
|
|
license = licenses.free;
|
|
platforms = [ "x86_64-linux" ];
|
|
maintainers = with maintainers; [ sstent ];
|
|
};
|
|
}
|