This commit is contained in:
2023-02-21 11:07:58 -05:00
parent e5984ec264
commit 0adeeb3a08
5 changed files with 1 additions and 107 deletions

43
hosts/wsl2/flake.lock generated
View File

@@ -1,43 +0,0 @@
{
"nodes": {
"flake-utils": {
"locked": {
"lastModified": 1676283394,
"narHash": "sha256-XX2f9c3iySLCw54rJ/CZs+ZK6IQy7GXNY4nSOyu2QG4=",
"owner": "numtide",
"repo": "flake-utils",
"rev": "3db36a8b464d0c4532ba1c7dda728f4576d6d073",
"type": "github"
},
"original": {
"owner": "numtide",
"repo": "flake-utils",
"type": "github"
}
},
"nixpkgs": {
"locked": {
"lastModified": 1676721149,
"narHash": "sha256-mN2EpTGxxVNnFZLoLWRwh6f7UWhXy4qE+wO2CZyrXps=",
"owner": "nixos",
"repo": "nixpkgs",
"rev": "5f4e07deb7c44f27d498f8df9c5f34750acf52d2",
"type": "github"
},
"original": {
"owner": "nixos",
"ref": "nixos-unstable",
"repo": "nixpkgs",
"type": "github"
}
},
"root": {
"inputs": {
"flake-utils": "flake-utils",
"nixpkgs": "nixpkgs"
}
}
},
"root": "root",
"version": 7
}

View File

@@ -1,33 +0,0 @@
{
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"; };
};
});
}

View File

@@ -1 +0,0 @@
/nix/store/ga8wddim12rk83xfji4f0llqxyv900gc-npiperealy-0.1

View File

@@ -1,4 +1,4 @@
{ lib, stdenv, fetchurl, gzip, gnutar }:
{ lib, stdenv, fetchurl }:
let
version = "1.6.3";

View File

@@ -1,29 +0,0 @@
{
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};
});
}