File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ # This file was generated by GoReleaser. DO NOT EDIT.
2+ # vim: set ft=nix ts=2 sw=2 sts=2 et sta
3+ {
4+ lib ,
5+ fetchurl ,
6+ installShellFiles ,
7+ stdenvNoCC ,
8+ stdenv ,
9+ autoPatchelfHook ,
10+ desktop-file-utils ,
11+ makeWrapper ,
12+ p11-kit ,
13+ polkit ,
14+ tpm2-openssl ,
15+ tpm2-tss ,
16+ } :
17+ let
18+ inherit ( stdenvNoCC . hostPlatform ) system ;
19+ shaMap = {
20+ x86_64-linux = "0r14pahsw6g13gpjqqcj40z3yvw2srfr2y29chvlcyjrnxxz7fwf" ;
21+ aarch64-linux = "1d602kbi5p9vbisaw2p9rfx6hxrq8ndgxdgi24r4mfkd9nf1b2dc" ;
22+ } ;
23+
24+ urlMap = {
25+ x86_64-linux = "https://github.com/smallstep/step-agent-plugin/releases/download/v0.65.0-rc20/step-agent_0.65.0-rc20_linux_amd64.tar.gz" ;
26+ aarch64-linux = "https://github.com/smallstep/step-agent-plugin/releases/download/v0.65.0-rc20/step-agent_0.65.0-rc20_linux_arm64.tar.gz" ;
27+ } ;
28+ in
29+ stdenvNoCC . mkDerivation {
30+ pname = "step-agent-plugin" ;
31+ version = "0.65.0-rc20" ;
32+ src = fetchurl {
33+ url = urlMap . ${ system } ;
34+ sha256 = shaMap . ${ system } ;
35+ } ;
36+
37+ sourceRoot = "." ;
38+
39+ nativeBuildInputs = [ installShellFiles makeWrapper ] ++ lib . optionals stdenvNoCC . isLinux [ autoPatchelfHook ] ;
40+
41+ buildInputs = lib . optionals stdenvNoCC . isLinux [
42+ stdenv . cc . cc . lib
43+ ] ;
44+
45+ installPhase = ''
46+ mkdir -p $out/bin
47+ cp -vr ./step-agent $out/bin/step-agent
48+ wrapProgram $out/bin/step-agent --prefix PATH : ${ lib . makeBinPath ( lib . optionals stdenvNoCC . isLinux [ tpm2-tss tpm2-openssl desktop-file-utils polkit p11-kit ] ) }
49+ '' ;
50+
51+ meta = {
52+ description = "step-agent-plugin is an automated certificate management agent plugin for step-cli." ;
53+ homepage = "https://github.com/smallstep/step-agent-plugin/" ;
54+
55+ sourceProvenance = [ lib . sourceTypes . binaryNativeCode ] ;
56+
57+ platforms = [
58+ "aarch64-linux"
59+ "x86_64-linux"
60+ ] ;
61+ } ;
62+ }
You can’t perform that action at this time.
0 commit comments