This commit is contained in:
Your Name
2023-02-20 04:00:12 +00:00
parent 2ae1f8eb4f
commit 386c081bdd
4 changed files with 82 additions and 4 deletions

29
pkgs/npiperelay/flake.nix Normal file
View File

@@ -0,0 +1,29 @@
{
description = "A flake for building My Hello World";
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-22.05";
inputs.flake-utils.url = "github:numtide/flake-utils";
outputs = { self, nixpkgs, flake-utils }:
flake-utils.lib.eachDefaultSystem (system:
let
pkgs = nixpkgs.legacyPackages.${system};
packageName = "npiperelay";
in {
packages.${packageName} = pkgs.stdenv.mkDerivation {
name = "${packageName}";
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" ];
installPhase = ''
mkdir -p $out/bin
cp $src $out/bin/npiperelay.exe
chmod +x $out/bin/npiperelay.exe
'';
};
defaultPackage = self.packages.${system}.${packageName};
});
}