forked from mirrors/nixpkgs
Merge pull request #167757 from superherointj/package-assh-enable-tests
This commit is contained in:
commit
a12486c442
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue