mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-10-06 20:48:32 +03:00
Merge pull request #307018 from bjornfor/cert-viewer-fix-cross-compilation
cert-viewer: fix cross-compilation
This commit is contained in:
commit
70412a707b
@ -1,7 +1,9 @@
|
||||
{ buildGoModule
|
||||
, buildPackages
|
||||
, fetchFromGitHub
|
||||
, lib
|
||||
, installShellFiles
|
||||
, stdenv
|
||||
}:
|
||||
|
||||
buildGoModule rec {
|
||||
@ -21,10 +23,17 @@ buildGoModule rec {
|
||||
installShellFiles
|
||||
];
|
||||
|
||||
postInstall = ''
|
||||
$out/bin/cert-viewer --help-man > cert-viewer.1
|
||||
installManPage cert-viewer.1
|
||||
'';
|
||||
postInstall =
|
||||
let
|
||||
prog =
|
||||
if stdenv.buildPlatform.canExecute stdenv.hostPlatform
|
||||
then "$out/bin/cert-viewer"
|
||||
else lib.getExe buildPackages.cert-viewer;
|
||||
in
|
||||
''
|
||||
${prog} --help-man > cert-viewer.1
|
||||
installManPage cert-viewer.1
|
||||
'';
|
||||
|
||||
meta = {
|
||||
description = "Admin tool to view and inspect multiple x509 Certificates";
|
||||
|
Loading…
Reference in New Issue
Block a user