3
0
Fork 0
forked from mirrors/nixpkgs

Merge pull request #167757 from superherointj/package-assh-enable-tests

This commit is contained in:
Sandro 2022-04-12 11:44:49 +02:00 committed by GitHub
commit a12486c442
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,8 +1,10 @@
{ lib
, stdenv
, buildGoModule
, fetchFromGitHub
, openssh
, makeWrapper
, ps
}:
buildGoModule rec {
@ -18,14 +20,14 @@ buildGoModule rec {
vendorSha256 = "sha256-xLsiYM0gZL5O+Y3IkiMmzJReNW7XFN3Xejz2CkCqp5M=";
doCheck = false;
ldflags = [
"-s" "-w" "-X moul.io/assh/v2/pkg/version.Version=${version}"
];
nativeBuildInputs = [ makeWrapper ];
checkInputs = lib.optionals stdenv.isDarwin [ ps ];
postInstall = ''
wrapProgram "$out/bin/assh" \
--prefix PATH : ${openssh}/bin