mirror of
https://github.com/sstent/vmimages.git
synced 2026-01-25 14:41:44 +00:00
sync
This commit is contained in:
48
pkgs/npiperelay/default.nix
Normal file
48
pkgs/npiperelay/default.nix
Normal file
@@ -0,0 +1,48 @@
|
|||||||
|
{ lib, stdenv, fetchurl, mkDerivation, gzip, gnutar }:
|
||||||
|
|
||||||
|
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 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.unfree;
|
||||||
|
platforms = [ "x86_64-linux" ];
|
||||||
|
maintainers = with maintainers; [ sstent ];
|
||||||
|
};
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user