mirror of
https://github.com/sstent/vmimages.git
synced 2025-12-06 06:01:51 +00:00
49 lines
1.4 KiB
Nix
49 lines
1.4 KiB
Nix
{ lib, stdenv, fetchurl, gzip, gnutar,unzip }:
|
|
|
|
let
|
|
version = "1.6.3";
|
|
srcs = {
|
|
x86_64-linux = fetchurl {
|
|
url =
|
|
"https://github.com/rupor-github/wsl-ssh-agent/releases/download/v1.6.3/wsl-ssh-agent.zip";
|
|
sha256 = "sha256-A1ykYteoNZi6QACkYHSxa1hY55GfqgClIFZFX2GuLMU=";
|
|
};
|
|
|
|
# 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 = [ dpkg autoPatchelfHook makeWrapper ];
|
|
|
|
#buildInputs = [ qtserialport qtwebsockets ];
|
|
|
|
#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 ];
|
|
};
|
|
}
|