-
-
Save kamilchm/4c07366c0fcec8c9974ae93e07ef3552 to your computer and use it in GitHub Desktop.
amazon-ssm-agent nix derivation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
with import <nixpkgs> {}; | |
buildGoPackage rec { | |
name = "amazon-ssm-agent-${version}"; | |
version = "2.0.633.0"; | |
goPackagePath = "github.com/aws/amazon-ssm-agent"; | |
subPackages = [ "agent" ]; | |
src = fetchFromGitHub { | |
rev = "v${version}"; | |
owner = "aws"; | |
repo = "amazon-ssm-agent"; | |
sha256 = "10arshfn2k3m3zzgw8b3xc6ywd0ss73746nq5srh2jir7mjzi4xv"; | |
}; | |
preBuild = '' | |
mv go/src/${goPackagePath}/vendor strange-vendor | |
mv strange-vendor/src go/src/${goPackagePath}/vendor | |
''; | |
# TODO: add metadata https://nixos.org/nixpkgs/manual/#sec-standard-meta-attributes | |
meta = { | |
}; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment