mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-20 02:55:39 +00:00
assh: enable tests
This commit is contained in:
parent
3d469dcb68
commit
82841125f5
@ -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 New Issue
Block a user