mirror of
https://github.com/sstent/vmimages.git
synced 2025-12-06 06:01:51 +00:00
34 lines
998 B
Nix
34 lines
998 B
Nix
{
|
|
description =
|
|
"npiperelay";
|
|
|
|
inputs.nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
|
inputs.flake-utils.url = "github:numtide/flake-utils";
|
|
|
|
outputs = { self, nixpkgs, flake-utils }:
|
|
flake-utils.lib.eachDefaultSystem (system:
|
|
let pkgs = nixpkgs.legacyPackages.${system};
|
|
in {
|
|
defaultPackage = pkgs.symlinkJoin {
|
|
name = "npiperealy-0.1";
|
|
paths = builtins.attrValues
|
|
self.packages.${system};
|
|
};
|
|
|
|
packages.npiperelay = pkgs.stdenvNoCC.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 = "sha256-A1ykYteoNZi6QACkYHSxa1hY55GfqgClIFZFX2GuLMU=";
|
|
};
|
|
phases = ["installPhase" "patchPhase"];
|
|
installPhase = ''
|
|
mkdir -p $out/bin
|
|
cp $src $out/bin/npiperelay.exe
|
|
chmod +x $out/bin/npiperelay.exe
|
|
'';
|
|
meta = { description = "npipe"; };
|
|
};
|
|
});
|
|
}
|