mirror of
https://github.com/sstent/vmimages.git
synced 2026-02-06 12:32:54 +00:00
sync
This commit is contained in:
26
pkgs-old/wsl-ssh-agent-relay/default.nix
Normal file
26
pkgs-old/wsl-ssh-agent-relay/default.nix
Normal file
@@ -0,0 +1,26 @@
|
||||
{ lib, stdenv, pkgs }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "wsl-ssh-agent-relay";
|
||||
version = "0.1";
|
||||
src = ./wsl-ssh-agent-relay;
|
||||
nativeBuildInputs = [pkgs.makeWrapper pkgs.dpkg];
|
||||
# phases = ["installPhase" ];
|
||||
unpackCmd = ''
|
||||
# $curSrc is the variable that contains the path to our source.
|
||||
mkdir wsl-ssh-agent-relay-src
|
||||
|
||||
# We rename the file here, because when nix adds files to the
|
||||
# store it adds a hash, which obviously we don't want for our
|
||||
# shell script.
|
||||
cp $curSrc wsl-ssh-agent-relay-src/wsl-ssh-agent-relay
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
install -Dm755 wsl-ssh-agent-relay $out/bin/wsl-ssh-agent-relay
|
||||
wrapProgram $out/bin/wsl-ssh-agent-relay --prefix PATH : $out/bin
|
||||
'';
|
||||
|
||||
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user