nixpkgs/pkgs/tools/networking/guardian-agent/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

48 lines
1.2 KiB
Nix
Raw Normal View History

2019-06-28 13:19:56 +02:00
{ buildGoPackage
, fetchFromGitHub
, lib
, autossh
, makeWrapper
2023-03-19 06:28:12 +01:00
, stdenv
2019-06-28 13:19:56 +02:00
}:
buildGoPackage rec {
pname = "guardian-agent";
version = "0.7.2";
src = fetchFromGitHub {
owner = "StanfordSNR";
repo = pname;
rev = "v${version}-beta";
sha256 = "05269y944hcabn6dqa66387rdhx81vcqcyjv6m1hdbz5ba8j7mqn";
};
nativeBuildInputs = [ makeWrapper ];
goPackagePath = "github.com/StanfordSNR/guardian-agent";
2020-08-31 11:59:33 +02:00
deleteVendor = true;
2019-06-28 13:19:56 +02:00
goDeps = ./deps.nix;
postInstall = ''
mkdir -p $out/bin $out/share/doc/${pname}
cp -v ./go/src/github.com/StanfordSNR/${pname}/scripts/* $out/bin/
2019-06-28 13:19:56 +02:00
cp -vr ./go/src/github.com/StanfordSNR/${pname}/{AUTHORS,doc,LICENSE,README.md} $out/share/doc/guardian-agent
'';
postFixup = ''
wrapProgram $out/bin/sga-guard \
--prefix PATH : "$out/bin" \
--prefix PATH : "${autossh}/bin"
2019-06-28 13:19:56 +02:00
'';
meta = with lib; {
description = "Secure ssh-agent forwarding for Mosh and SSH";
homepage = "https://github.com/StanfordSNR/guardian-agent";
license = licenses.bsd3;
maintainers = with maintainers; [ mmahut ];
platforms = platforms.unix;
2023-03-19 06:28:12 +01:00
broken = stdenv.isDarwin; # x/sys/unix needs an update, but software is unmaintained
2019-06-28 13:19:56 +02:00
};
}